Bug 682326 - Disable method jit for chrome [r=mbrubeck a=clegnitto]
authorMark Finkle <mfinkle@mozilla.com>
Fri, 26 Aug 2011 13:46:06 -0400
changeset 75846 b1d382004d3f
parent 75845 1b904630fdd7
child 75847 b71f847ed644
push id365
push usermfinkle@mozilla.com
push dateSat, 10 Sep 2011 05:28:19 +0000
treeherdermozilla-aurora@b1d382004d3f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck, clegnitto
bugs682326
milestone8.0a2
Bug 682326 - Disable method jit for chrome [r=mbrubeck a=clegnitto]
mobile/app/mobile.js
--- a/mobile/app/mobile.js
+++ b/mobile/app/mobile.js
@@ -376,16 +376,19 @@ pref("geo.enabled", true);
 
 // content sink control -- controls responsiveness during page load
 // see https://bugzilla.mozilla.org/show_bug.cgi?id=481566#c9
 pref("content.sink.enable_perf_mode",  2); // 0 - switch, 1 - interactive, 2 - perf
 pref("content.sink.pending_event_mode", 0);
 pref("content.sink.perf_deflect_count", 1000000);
 pref("content.sink.perf_parse_time", 50000000);
 
+// Disable methodjit in chrome to save memory
+pref("javascript.options.methodjit.chrome",  false);
+
 pref("javascript.options.mem.high_water_mark", 32);
 
 // Disable the JS engine's gc on memory pressure, since we do one in the mobile
 // browser (bug 669346).
 pref("javascript.options.gc_on_memory_pressure", false);
 
 pref("dom.max_chrome_script_run_time", 0); // disable slow script dialog for chrome
 pref("dom.max_script_run_time", 20);