Bug 940965 - Do not use Unagi's GC settings by default. r=h4writer
authorNicolas B. Pierron <nicolas.b.pierron@mozilla.com>
Tue, 17 Dec 2013 07:00:32 -0800
changeset 160823 4f541dfa1a41bb920b67633e296a8d3bedb85141
parent 160822 adfa9fa90fd9b9d6eb7f41070d821e5ad0277524
child 160824 97a3f38d295979cb6667c5c181c65565164e4b14
push id37715
push usernpierron@mozilla.com
push dateTue, 17 Dec 2013 15:01:12 +0000
treeherdermozilla-inbound@4f541dfa1a41 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersh4writer
bugs940965
milestone29.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 940965 - Do not use Unagi's GC settings by default. r=h4writer CLOSED TREE
js/src/shell/js.cpp
--- a/js/src/shell/js.cpp
+++ b/js/src/shell/js.cpp
@@ -5923,17 +5923,17 @@ main(int argc, char **argv, char **envp)
 
     JS_SetGCParameter(rt, JSGC_MAX_BYTES, 0xffffffff);
 #ifdef JSGC_GENERATIONAL
     if (op.getBoolOption("no-ggc"))
         JS::DisableGenerationalGC(rt);
 #endif
 
     size_t availMem = op.getIntOption("available-memory");
-    if (availMem >= 0)
+    if (availMem > 0)
         JS_SetGCParametersBasedOnAvailableMemory(rt, availMem);
 
     /* Set the initial counter to 1 so the principal will never be destroyed. */
     JSPrincipals shellTrustedPrincipals;
     shellTrustedPrincipals.refcount = 1;
 
     JS_SetTrustedPrincipals(rt, &shellTrustedPrincipals);
     JS_SetSecurityCallbacks(rt, &securityCallbacks);