Bug 699668 - Increase JS type arena size to 128K (r=njn)
authorBill McCloskey <wmccloskey@mozilla.com>
Fri, 18 Nov 2011 14:59:18 -0800
changeset 80487 487d3d5dc47ff15d82ba38b44ec1b947399fa784
parent 80486 2681fd0c05456411d570d1ab9d83b19d60f634ec
child 80488 88086bed7f10b38ba61b9d7e797ffcaa2068e16a
push id21500
push userbmo@edmorley.co.uk
push dateSat, 19 Nov 2011 13:04:35 +0000
treeherdermozilla-central@46c2bd7dbdd4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs699668
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 699668 - Increase JS type arena size to 128K (r=njn)
js/src/jscompartment.h
--- a/js/src/jscompartment.h
+++ b/js/src/jscompartment.h
@@ -415,17 +415,17 @@ struct JS_FRIEND_API(JSCompartment) {
     bool                         hold;
     bool                         isSystemCompartment;
 
     /*
      * Pool for analysis and intermediate type information in this compartment.
      * Cleared on every GC, unless the GC happens during analysis (indicated
      * by activeAnalysis, which is implied by activeInference).
      */
-    static const size_t TYPE_LIFO_ALLOC_PRIMARY_CHUNK_SIZE = 4 * 1024;
+    static const size_t TYPE_LIFO_ALLOC_PRIMARY_CHUNK_SIZE = 128 * 1024;
     js::LifoAlloc                typeLifoAlloc;
     bool                         activeAnalysis;
     bool                         activeInference;
 
     /* Type information about the scripts and objects in this compartment. */
     js::types::TypeCompartment   types;
 
 #ifdef JS_TRACER