Bug 990353 - Flip on source discarding for b2g. r=bent a=1.3t+
authorBobby Holley <bobbyholley@gmail.com>
Tue, 22 Apr 2014 12:41:11 -0700
changeset 171735 040ce4f8dcb0299ee90e9f8bbd99f60700bf8b74
parent 171734 11f89146ebe1c8209022c98ff8e225382128f41f
child 171736 46e50e7485c2dd76aea1a22c655759688e8ae7e1
push id330
push userfdesre@mozilla.com
push dateTue, 22 Apr 2014 19:41:22 +0000
reviewersbent, 1
bugs990353
milestone28.1
Bug 990353 - Flip on source discarding for b2g. r=bent a=1.3t+
b2g/app/b2g.js
--- a/b2g/app/b2g.js
+++ b/b2g/app/b2g.js
@@ -591,18 +591,17 @@ pref("dom.forms.color", false);
 
 // Turns on gralloc-based direct texturing for Gonk
 pref("gfx.gralloc.enabled", false);
 
 // This preference instructs the JS engine to discard the
 // source of any privileged JS after compilation. This saves
 // memory, but makes things like Function.prototype.toSource()
 // fail.
-// XXXbholley - we flip this to true in the last patch.
-pref("javascript.options.discardSystemSource", false);
+pref("javascript.options.discardSystemSource", true);
 
 // XXXX REMOVE FOR PRODUCTION. Turns on GC and CC logging
 pref("javascript.options.mem.log", false);
 
 // Increase mark slice time from 10ms to 30ms
 pref("javascript.options.mem.gc_incremental_slice_ms", 30);
 
 // Increase time to get more high frequency GC on benchmarks from 1000ms to 1500ms