From fe7244c016b382f6ce9925cac1c2c96bbcecc373 Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Mon, 24 Apr 2023 13:21:23 +0800 Subject: [PATCH] Issue #1691 - Follow-up: Print leaking class name and remove crash reporter dependency --- xpcom/base/nsCycleCollector.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xpcom/base/nsCycleCollector.cpp b/xpcom/base/nsCycleCollector.cpp index db99a05877..3e78bb0d67 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();