summaryrefslogtreecommitdiffstats
path: root/xpcom/build/XPCOMInit.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-05-24 14:06:04 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-05-24 14:06:04 +0200
commitac25827a87d86f1cf9e48aab6605f77a2c89041a (patch)
treec3533a008e606f4f6393e838b4305cf6d07f47d2 /xpcom/build/XPCOMInit.cpp
parentc8b38a18031f6ae0fca8b2bef73daa86f6f96ae8 (diff)
downloadUXP-ac25827a87d86f1cf9e48aab6605f77a2c89041a.tar
UXP-ac25827a87d86f1cf9e48aab6605f77a2c89041a.tar.gz
UXP-ac25827a87d86f1cf9e48aab6605f77a2c89041a.tar.lz
UXP-ac25827a87d86f1cf9e48aab6605f77a2c89041a.tar.xz
UXP-ac25827a87d86f1cf9e48aab6605f77a2c89041a.zip
Remove SPS profiler.
- Conditionals and code blocks. (MOZ_ENABLE_PROFILER_SPS) - Stub out several profiler-only functions.
Diffstat (limited to 'xpcom/build/XPCOMInit.cpp')
-rw-r--r--xpcom/build/XPCOMInit.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/xpcom/build/XPCOMInit.cpp b/xpcom/build/XPCOMInit.cpp
index 7b220558f..e8ee5828a 100644
--- a/xpcom/build/XPCOMInit.cpp
+++ b/xpcom/build/XPCOMInit.cpp
@@ -1037,20 +1037,6 @@ ShutdownXPCOM(nsIServiceManager* aServMgr)
NS_WARNING("Component Manager was never created ...");
}
-#ifdef MOZ_ENABLE_PROFILER_SPS
- // In optimized builds we don't do shutdown collections by default, so
- // uncollected (garbage) objects may keep the nsXPConnect singleton alive,
- // and its XPCJSContext along with it. However, we still destroy various
- // bits of state in JS_ShutDown(), so we need to make sure the profiler
- // can't access them when it shuts down. This call nulls out the
- // JS pseudo-stack's internal reference to the main thread JSContext,
- // duplicating the call in XPCJSContext::~XPCJSContext() in case that
- // never fired.
- if (PseudoStack* stack = mozilla_get_pseudo_stack()) {
- stack->sampleContext(nullptr);
- }
-#endif
-
if (sInitializedJS) {
// Shut down the JS engine.
JS_ShutDown();