Bug 940069 - Land a temporary debugging printf that runs on --enable-valgrind builds only, because Valgrind runs aren't available on tryserver. r=me.
authorNicholas Nethercote <nnethercote@mozilla.com>
Mon, 18 Nov 2013 23:13:15 -0800
changeset 156211 ba9ecdea3a90a50fcec3153b7d7d9ad66a7fc51e
parent 156210 e4b59fdbc9c2dfc8d28cdcdc2888bf4a21376826
child 156212 5ba4c0b3567f8f7bf06d91dad917f9f83de4bdca
push id25671
push usernnethercote@mozilla.com
push dateTue, 19 Nov 2013 08:33:04 +0000
treeherdermozilla-central@ba9ecdea3a90 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs940069
milestone28.0a1
first release with
nightly linux32
ba9ecdea3a90 / 28.0a1 / 20131119030202 / files
nightly linux64
ba9ecdea3a90 / 28.0a1 / 20131119030202 / files
nightly mac
ba9ecdea3a90 / 28.0a1 / 20131119030202 / files
nightly win32
ba9ecdea3a90 / 28.0a1 / 20131119030202 / files
nightly win64
ba9ecdea3a90 / 28.0a1 / 20131119030202 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 940069 - Land a temporary debugging printf that runs on --enable-valgrind builds only, because Valgrind runs aren't available on tryserver. r=me.
xpcom/base/nsCycleCollector.cpp
--- a/xpcom/base/nsCycleCollector.cpp
+++ b/xpcom/base/nsCycleCollector.cpp
@@ -2811,16 +2811,21 @@ nsCycleCollector::SuspectedCount()
 void
 nsCycleCollector::Shutdown()
 {
     CheckThreadSafety();
 
     // Always delete snow white objects.
     FreeSnowWhite(true);
 
+#ifdef MOZ_VALGRIND
+    char *e = PR_GetEnv("XPCOM_CC_RUN_DURING_SHUTDOWN");
+    fprintf(stderr, "XPCOM_CC_RUN_DURING_SHUTDOWN = %s\n", e);
+#endif
+
 #ifndef DEBUG
     if (PR_GetEnv("XPCOM_CC_RUN_DURING_SHUTDOWN"))
 #endif
     {
         ShutdownCollect();
     }
 }