mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 472461 part 1 - jsgc.cpp fails to compile with !JS_TRACER, initial patch by Igor, r=jorendorff with nits fixed by bsmedberg
This commit is contained in:
parent
3da733094d
commit
61c5a56d65
@ -1826,8 +1826,10 @@ js_NewGCThing(JSContext *cx, uintN flags, size_t nbytes)
|
||||
doGC = (rt->gcMallocBytes >= rt->gcMaxMallocBytes && rt->gcPoke);
|
||||
#ifdef JS_GC_ZEAL
|
||||
doGC = doGC || rt->gcZeal >= 2 || (rt->gcZeal >= 1 && rt->gcPoke);
|
||||
# ifdef JS_TRACER
|
||||
if (rt->gcZeal >= 1 && JS_TRACE_MONITOR(cx).useReservedObjects)
|
||||
goto testReservedObjects;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
arenaList = &rt->gcArenaList[flindex];
|
||||
@ -2242,7 +2244,7 @@ js_ReserveObjects(JSContext *cx, size_t nobjects)
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
#endif JS_TRACER
|
||||
#endif
|
||||
|
||||
JSBool
|
||||
js_AddAsGCBytes(JSContext *cx, size_t sz)
|
||||
|
Loading…
Reference in New Issue
Block a user