Bug 1533545 - Backout because of build bustage on a CLOSED TREE. r=me
authorNicolas Silva <nsilva@mozilla.com>
Wed, 24 Apr 2019 21:01:23 +0200
changeset 530082 4615f45cd4fe856b37ae10d9f9579d6c808ca2f4
parent 530081 982f67ea87c6c12f5cc04b2b7475879d3ced6213
child 530083 9fc36dfcb6cf0486b0e6cd3a38e7566075c2487b
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1533545
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1533545 - Backout because of build bustage on a CLOSED TREE. r=me
gfx/webrender_bindings/WebRenderAPI.cpp
gfx/webrender_bindings/src/bindings.rs
--- a/gfx/webrender_bindings/WebRenderAPI.cpp
+++ b/gfx/webrender_bindings/WebRenderAPI.cpp
@@ -1269,13 +1269,9 @@ void wr_transaction_notification_notifie
                                           mozilla::wr::Checkpoint aWhen) {
   auto handler = reinterpret_cast<mozilla::wr::NotificationHandler*>(aHandler);
   handler->Notify(aWhen);
   // TODO: it would be better to get a callback when the object is destroyed on
   // the rust side and delete then.
   delete handler;
 }
 
-void wr_register_thread_local_arena() {
-  jemalloc_thread_local_arena(true);
-}
-
 }  // extern C
--- a/gfx/webrender_bindings/src/bindings.rs
+++ b/gfx/webrender_bindings/src/bindings.rs
@@ -982,17 +982,16 @@ impl AsyncPropertySampler for SamplerCal
     fn deregister(&self) {
         unsafe { apz_deregister_sampler(self.window_id) }
     }
 }
 
 extern "C" {
     fn gecko_profiler_register_thread(name: *const ::std::os::raw::c_char);
     fn gecko_profiler_unregister_thread();
-    fn wr_register_thread_local_arena();
 }
 
 struct GeckoProfilerThreadListener {}
 
 impl GeckoProfilerThreadListener {
     pub fn new() -> GeckoProfilerThreadListener {
         GeckoProfilerThreadListener{}
     }
@@ -1022,17 +1021,16 @@ pub unsafe extern "C" fn wr_thread_pool_
     // with high worker counts and extra overhead because of rayon and font
     // management.
     let num_threads = num_cpus::get().max(2).min(8);
 
     let worker = rayon::ThreadPoolBuilder::new()
         .thread_name(|idx|{ format!("WRWorker#{}", idx) })
         .num_threads(num_threads)
         .start_handler(|idx| {
-            wr_register_thread_local_arena();
             let name = format!("WRWorker#{}", idx);
             register_thread_with_profiler(name.clone());
             gecko_profiler_register_thread(CString::new(name).unwrap().as_ptr());
         })
         .exit_handler(|_idx| {
             gecko_profiler_unregister_thread();
         })
         .build();