Bug 950006 - Don't skip zeal GCs if allocating without the possibility of GC r=billm

This commit is contained in:
Jon Coppeard 2013-12-16 08:57:37 +00:00
Родитель 38771ca378
Коммит 89289ffa66
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -434,7 +434,7 @@ NewGCThing(ThreadSafeContext *cx, AllocKind kind, size_t thingSize, InitialHeap
JS_OOM_POSSIBLY_FAIL_REPORT(ncx);
#ifdef JS_GC_ZEAL
if (rt->needZealousGC() && allowGC)
if (allowGC && rt->needZealousGC())
js::gc::RunDebugGC(ncx);
#endif