mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
Issue #1691 - Follow-up: Print leaking class name and remove crash reporter dependency
This commit is contained in:
parent
c4d665a0d0
commit
fe7244c016
1 changed files with 2 additions and 3 deletions
|
|
@ -622,13 +622,12 @@ PtrInfo::AnnotatedReleaseAssert(bool aCondition, const char* aMessage)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MOZ_CRASHREPORTER
|
#ifdef MOZ_DEBUG
|
||||||
const char* piName = "Unknown";
|
const char* piName = "Unknown";
|
||||||
if (mParticipant) {
|
if (mParticipant) {
|
||||||
piName = mParticipant->ClassName();
|
piName = mParticipant->ClassName();
|
||||||
}
|
}
|
||||||
nsPrintfCString msg("%s, for class %s", aMessage, piName);
|
printf("cc: %s, for class %s\n", aMessage, piName);
|
||||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("CycleCollector"), msg);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
MOZ_CRASH();
|
MOZ_CRASH();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue