summaryrefslogtreecommitdiff
path: root/xpcom
diff options
context:
space:
mode:
authorFranklinDM <mrmineshafter17@gmail.com>2023-04-24 13:21:23 +0800
committerFranklinDM <mrmineshafter17@gmail.com>2023-06-19 15:15:47 +0800
commit32751e3d8f0cc8f8249e286d591f102a8443e16e (patch)
tree20f16d6cc1cd6c67e59550ac6fd7610e0ee4ac8c /xpcom
parentc11311fd5b0eaa10121de85d3e937ce62dcf68b4 (diff)
downloaduxp-32751e3d8f0cc8f8249e286d591f102a8443e16e.tar.gz
Issue #1691 - Follow-up: Print leaking class name and remove crash reporter dependency
Diffstat (limited to 'xpcom')
-rw-r--r--xpcom/base/nsCycleCollector.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/xpcom/base/nsCycleCollector.cpp b/xpcom/base/nsCycleCollector.cpp
index 2e5804929e..3d4d33a7df 100644
--- a/xpcom/base/nsCycleCollector.cpp
+++ b/xpcom/base/nsCycleCollector.cpp
@@ -622,13 +622,12 @@ PtrInfo::AnnotatedReleaseAssert(bool aCondition, const char* aMessage)
return;
}
-#ifdef MOZ_CRASHREPORTER
+#ifdef MOZ_DEBUG
const char* piName = "Unknown";
if (mParticipant) {
piName = mParticipant->ClassName();
}
- nsPrintfCString msg("%s, for class %s", aMessage, piName);
- CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("CycleCollector"), msg);
+ printf("cc: %s, for class %s\n", aMessage, piName);
#endif
MOZ_CRASH();