зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
583a0859e7
Коммит
491f11b715
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче