Bug 1401427 - Temporarily disable UACacheReporter due to a leak.
authorNicholas Nethercote <nnethercote@mozilla.com>
Wed, 20 Sep 2017 12:23:47 +1000
changeset 381820 6b2618acffea72ab7e06116680365ad352660823
parent 381819 2b9dcbd0701a739568267ba2a2614ac0be9ae3b9
child 381821 4dade7ac1e2403d693d59b8501a04c3e043d38ec
push id51615
push userphilringnalda@gmail.com
push dateWed, 20 Sep 2017 02:28:08 +0000
treeherderautoland@6b2618acffea [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1401427
milestone57.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 1401427 - Temporarily disable UACacheReporter due to a leak. MozReview-Commit-ID: G8MBeSqYkqa
layout/style/ServoBindings.cpp
--- a/layout/style/ServoBindings.cpp
+++ b/layout/style/ServoBindings.cpp
@@ -2437,40 +2437,43 @@ Gecko_XBLBinding_GetRawServoStyleSet(Raw
 }
 
 bool
 Gecko_XBLBinding_InheritsStyle(RawGeckoXBLBindingBorrowed aXBLBinding)
 {
   return aXBLBinding->InheritsStyle();
 }
 
-static StaticRefPtr<UACacheReporter> gUACacheReporter;
+// XXX: temporarily disabled due to a leak, see bug 1401427
+//static StaticRefPtr<UACacheReporter> gUACacheReporter;
 
 void
 InitializeServo()
 {
   URLExtraData::InitDummy();
   Servo_Initialize(URLExtraData::Dummy());
 
-  gUACacheReporter = new UACacheReporter();
-  RegisterWeakMemoryReporter(gUACacheReporter);
+  // XXX: temporarily disabled due to a leak, see bug 1401427
+  //gUACacheReporter = new UACacheReporter();
+  //RegisterWeakMemoryReporter(gUACacheReporter);
 
   sServoFontMetricsLock = new Mutex("Gecko_GetFontMetrics");
   sServoWidgetLock = new Mutex("Servo::WidgetLock");
   sServoLangFontPrefsLock = new RWLock("nsPresContext::GetDefaultFont");
 }
 
 void
 ShutdownServo()
 {
   MOZ_ASSERT(sServoFontMetricsLock);
   MOZ_ASSERT(sServoWidgetLock);
   MOZ_ASSERT(sServoLangFontPrefsLock);
 
-  UnregisterWeakMemoryReporter(gUACacheReporter);
+  // XXX: temporarily disabled due to a leak, see bug 1401427
+  //UnregisterWeakMemoryReporter(gUACacheReporter);
 
   delete sServoFontMetricsLock;
   delete sServoWidgetLock;
   delete sServoLangFontPrefsLock;
   Servo_Shutdown();
 }
 
 namespace mozilla {