Bug 1128061 - Check unhandlable OOM when finishing off-thread Ion compiles. (r=terrence)

This commit is contained in:
Shu-yu Guo 2015-02-04 16:07:04 -08:00
parent 0664252a1e
commit 4db008aed9

View File

@ -116,7 +116,8 @@ js::StartOffThreadIonCompile(JSContext *cx, jit::IonBuilder *builder)
static void
FinishOffThreadIonCompile(jit::IonBuilder *builder)
{
HelperThreadState().ionFinishedList().append(builder);
if (!HelperThreadState().ionFinishedList().append(builder))
CrashAtUnhandlableOOM("FinishOffThreadIonCompile");
}
static inline bool