Bug 699668 - Increase JS type arena size for faster GC sweeps (r=njn)
authorBill McCloskey <wmccloskey@mozilla.com>
Wed, 16 Nov 2011 17:31:28 -0800
changeset 80363 aa05d607c95e0f057f569e0d6f13652a610642cd
parent 80362 cee431a0f087c064358f22a710d4f4f8c184248b
child 80364 5ed596fa3b488a0564031b564e0450c2f2106207
push id21486
push usermak77@bonardo.net
push dateThu, 17 Nov 2011 09:54:31 +0000
treeherdermozilla-central@e7d5dd9efeca [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 for faster GC sweeps (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 = 1 << 12;
+    static const size_t TYPE_LIFO_ALLOC_PRIMARY_CHUNK_SIZE = 256 * 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