Bug 800063 - Make GC_ALLOCATION_THRESHOLD dynamic. followup. r=orange
authorGregor Wagner <anygregor@gmail.com>
Fri, 26 Oct 2012 17:40:39 -0700
changeset 111724 647d6f4cd15d961dbf3d4aa4183704e7d470e6fd
parent 111723 1330fdc14cb0bd2add8fbbb8116cdbe354b9331f
child 111725 265427a0694d7ce60f068ca323c88327744b8c58
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersorange
bugs800063
milestone19.0a1
Bug 800063 - Make GC_ALLOCATION_THRESHOLD dynamic. followup. r=orange
js/src/jsapi.cpp
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -752,17 +752,17 @@ JSRuntime::JSRuntime(JSUseHelperThreads 
     gcNumArenasFreeCommitted(0),
     gcVerifyPreData(NULL),
     gcVerifyPostData(NULL),
     gcChunkAllocationSinceLastGC(false),
     gcNextFullGCTime(0),
     gcLastGCTime(0),
     gcJitReleaseTime(0),
     gcMode(JSGC_MODE_GLOBAL),
-    gcAllocationThreshold(30),
+    gcAllocationThreshold(30 * 1024 * 1024),
     gcHighFrequencyGC(false),
     gcHighFrequencyTimeThreshold(1000),
     gcHighFrequencyLowLimitBytes(100 * 1024 * 1024),
     gcHighFrequencyHighLimitBytes(500 * 1024 * 1024),
     gcHighFrequencyHeapGrowthMax(3.0),
     gcHighFrequencyHeapGrowthMin(1.5),
     gcLowFrequencyHeapGrowth(1.5),
     gcDynamicHeapGrowth(false),