Bug 1642290: stop the process preallocator during normal shutdown, not post-CC r=nika
authorRandell Jesup <rjesup@wgate.com>
Wed, 10 Jun 2020 13:36:40 +0000
changeset 598942 3a6ed2262ba4a316645d1b9450f1fa7631faba19
parent 598941 28d20aef861dcee68ebe0a7497b4574b176c1d42
child 598943 45c61fd0206e7505f4d950a876279ba30a203321
push id13310
push userffxbld-merge
push dateMon, 29 Jun 2020 14:50:06 +0000
treeherdermozilla-beta@15a59a0afa5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnika
bugs1642290, 1642491
milestone79.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 1642290: stop the process preallocator during normal shutdown, not post-CC r=nika Post-CC is no longer needed given the landing of bug 1642491 Differential Revision: https://phabricator.services.mozilla.com/D79017
dom/ipc/PreallocatedProcessManager.cpp
--- a/dom/ipc/PreallocatedProcessManager.cpp
+++ b/dom/ipc/PreallocatedProcessManager.cpp
@@ -96,18 +96,17 @@ StaticRefPtr<PreallocatedProcessManagerI
     PreallocatedProcessManagerImpl::sSingleton;
 
 /* static */
 PreallocatedProcessManagerImpl* PreallocatedProcessManagerImpl::Singleton() {
   MOZ_ASSERT(NS_IsMainThread());
   if (!sSingleton) {
     sSingleton = new PreallocatedProcessManagerImpl;
     sSingleton->Init();
-    ClearOnShutdown(&sSingleton,
-                    ShutdownPhase::ShutdownPostLastCycleCollection);
+    ClearOnShutdown(&sSingleton);
   }
   return sSingleton;
   //  PreallocatedProcessManagers live until shutdown
 }
 
 NS_IMPL_ISUPPORTS(PreallocatedProcessManagerImpl, nsIObserver)
 
 PreallocatedProcessManagerImpl::PreallocatedProcessManagerImpl()