Bug 338653: Check for JSRuntime.gcMaxMallocLimit on each allocation in js_NewGCThing to trigger GC sooner to prevent accumulation of garbage with large allocations.

Bustage fix #ifdef DEBUG_gchist
This commit is contained in:
timeless%mozdev.org 2006-09-13 11:01:35 +00:00
Родитель 583a0859e7
Коммит 491f11b715
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1349,7 +1349,7 @@ js_NewGCThing(JSContext *cx, uintN flags, size_t nbytes)
thing->next = NULL;
thing->flagp = NULL;
#ifdef DEBUG_gchist
gchist[gchpos].lastDitch = triedGC;
gchist[gchpos].lastDitch = doGC;
gchist[gchpos].freeList = &rt->gcArenaList[flindex];
if (++gchpos == NGCHIST)
gchpos = 0;