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:
Benjamin Smedberg 2009-01-08 10:43:33 -05:00
parent 3da733094d
commit 61c5a56d65

View File

@ -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)