Bug 842217 - Contacts list swipe and pan gets stuck because of frequent GCs. r=billm

This commit is contained in:
Gregor Wagner 2013-03-05 11:08:44 -08:00
parent 252d6291d7
commit 4ba30c9fe9
2 changed files with 4 additions and 4 deletions

View File

@ -527,11 +527,11 @@ pref("javascript.options.mem.log", false);
// Increase mark slice time from 10ms to 30ms
pref("javascript.options.mem.gc_incremental_slice_ms", 30);
pref("javascript.options.mem.gc_high_frequency_heap_growth_max", 120);
pref("javascript.options.mem.gc_high_frequency_heap_growth_min", 101);
pref("javascript.options.mem.gc_high_frequency_heap_growth_max", 150);
pref("javascript.options.mem.gc_high_frequency_heap_growth_min", 120);
pref("javascript.options.mem.gc_high_frequency_high_limit_mb", 40);
pref("javascript.options.mem.gc_high_frequency_low_limit_mb", 10);
pref("javascript.options.mem.gc_low_frequency_heap_growth", 105);
pref("javascript.options.mem.gc_low_frequency_heap_growth", 120);
pref("javascript.options.mem.high_water_mark", 6);
pref("javascript.options.mem.gc_allocation_threshold_mb", 3);

View File

@ -2023,7 +2023,7 @@ js::MaybeGC(JSContext *cx)
return;
}
double factor = rt->gcHighFrequencyGC ? 0.75 : 0.9;
double factor = rt->gcHighFrequencyGC ? 0.85 : 0.9;
Zone *zone = cx->zone();
if (zone->gcBytes > 1024 * 1024 &&
zone->gcBytes >= factor * zone->gcTriggerBytes &&