diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp index ed57b28e3cb..a5f626aed54 100644 --- a/js/src/jsapi.cpp +++ b/js/src/jsapi.cpp @@ -1923,12 +1923,15 @@ JS_SetGCParameter(JSRuntime *rt, JSGCParamKey key, uint32_t value) break; case JSGC_HIGH_FREQUENCY_HEAP_GROWTH_MAX: rt->gcHighFrequencyHeapGrowthMax = value / 100.0; + MOZ_ASSERT(rt->gcHighFrequencyHeapGrowthMax / 0.85 > 1.0); break; case JSGC_HIGH_FREQUENCY_HEAP_GROWTH_MIN: rt->gcHighFrequencyHeapGrowthMin = value / 100.0; + MOZ_ASSERT(rt->gcHighFrequencyHeapGrowthMin / 0.85 > 1.0); break; case JSGC_LOW_FREQUENCY_HEAP_GROWTH: rt->gcLowFrequencyHeapGrowth = value / 100.0; + MOZ_ASSERT(rt->gcLowFrequencyHeapGrowth / 0.9 > 1.0); break; case JSGC_DYNAMIC_HEAP_GROWTH: rt->gcDynamicHeapGrowth = value; diff --git a/mobile/android/app/mobile.js b/mobile/android/app/mobile.js index 4b9dd3a3fa6..93b37060be7 100644 --- a/mobile/android/app/mobile.js +++ b/mobile/android/app/mobile.js @@ -412,10 +412,10 @@ pref("javascript.options.gc_on_memory_pressure", false); #ifdef MOZ_PKG_SPECIAL // low memory devices 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_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", 16); pref("javascript.options.mem.gc_allocation_threshold_mb", 3); pref("javascript.options.mem.gc_decommit_threshold_mb", 1);