1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

Issue #1691 - Follow-up: Print leaking class name and remove crash reporter dependency

This commit is contained in:
FranklinDM
2023-04-24 13:21:23 +08:00
committed by roytam1
parent c4d665a0d0
commit fe7244c016
+2 -3
View File
@@ -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();