Bug 735099 - Re-enable incremental GC (r=dmandelin)

This commit is contained in:
Bill McCloskey 2012-05-31 08:17:13 -07:00
Родитель 6c47c7bbfc
Коммит 2108b41260
3 изменённых файлов: 7 добавлений и 3 удалений

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

@ -971,8 +971,11 @@ nsDOMWindowUtils::GarbageCollect(nsICycleCollectorListener *aListener,
}
#endif
for (int i = 0; i < 3; i++) {
nsJSContext::GarbageCollectNow(js::gcreason::DOM_UTILS, nsGCNormal, true);
nsJSContext::CycleCollectNow(aListener, aExtraForgetSkippableCalls);
}
nsJSContext::GarbageCollectNow(js::gcreason::DOM_UTILS, nsGCNormal, true);
nsJSContext::CycleCollectNow(aListener, aExtraForgetSkippableCalls);
return NS_OK;
}

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

@ -905,7 +905,7 @@ static const char js_pccounts_chrome_str[] = JS_OPTIONS_DOT_STR "pccounts.chr
static const char js_jit_hardening_str[] = JS_OPTIONS_DOT_STR "jit_hardening";
static const char js_memlog_option_str[] = JS_OPTIONS_DOT_STR "mem.log";
static const char js_disable_explicit_compartment_gc[] =
JS_OPTIONS_DOT_STR "disable_explicit_compartment_gc";
JS_OPTIONS_DOT_STR "mem.disable_explicit_compartment_gc";
int
nsJSContext::JSOptionChangedCallback(const char *pref, void *data)

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

@ -652,7 +652,8 @@ pref("javascript.options.typeinference", true);
pref("javascript.options.mem.high_water_mark", 128);
pref("javascript.options.mem.max", -1);
pref("javascript.options.mem.gc_per_compartment", true);
pref("javascript.options.mem.gc_incremental", false);
pref("javascript.options.mem.disable_explicit_compartment_gc", true);
pref("javascript.options.mem.gc_incremental", true);
pref("javascript.options.mem.gc_incremental_slice_ms", 10);
pref("javascript.options.mem.log", false);
pref("javascript.options.gc_on_memory_pressure", true);