Bug 1277104 - Add strings to high-frequency MOZ_CRASH() occurrences. mccr8.

Some of these are guesses; it's not always clear from a crash report stack
trace which MOZ_CRASH() was hit.
This commit is contained in:
Nicholas Nethercote
2016-06-09 13:09:58 +10:00
parent 503755dd12
commit 9165c82198
5 changed files with 12 additions and 13 deletions

View File

@@ -505,7 +505,7 @@ CycleCollectedJSRuntime::Initialize(JSRuntime* aParentRuntime,
}
if (!JS_AddExtraGCRootsTracer(mJSRuntime, TraceBlackJS, this)) {
MOZ_CRASH();
MOZ_CRASH("JS_AddExtraGCRootsTracer failed");
}
JS_SetGrayGCRootsTracer(mJSRuntime, TraceGrayJS, this);
JS_SetGCCallback(mJSRuntime, GCCallback, this);