tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsdelf...@apache.org
Subject svn commit: r1165451 - /tuscany/sca-cpp/trunk/modules/js/eval.hpp
Date Mon, 05 Sep 2011 23:30:24 GMT
Author: jsdelfino
Date: Mon Sep  5 23:30:24 2011
New Revision: 1165451

URL: http://svn.apache.org/viewvc?rev=1165451&view=rev
Log:
Tune up Mozilla SpiderMonkey memory usage and garbage collection.

Modified:
    tuscany/sca-cpp/trunk/modules/js/eval.hpp

Modified: tuscany/sca-cpp/trunk/modules/js/eval.hpp
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/js/eval.hpp?rev=1165451&r1=1165450&r2=1165451&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/js/eval.hpp (original)
+++ tuscany/sca-cpp/trunk/modules/js/eval.hpp Mon Sep  5 23:30:24 2011
@@ -70,7 +70,7 @@ public:
     JSRuntime() {
         // Create JS runtime
         debug("js::jsruntime");
-        rt = JS_NewRuntime(8L * 1024L * 1024L);
+        rt = JS_NewRuntime(32L * 1024L * 1024L);
         if(rt == NULL)
             cleanup();
     }
@@ -121,7 +121,7 @@ public:
             cx = jsContext;
             return;
         }
-        cx = JS_NewContext(jsRuntime, 32768);
+        cx = JS_NewContext(jsRuntime, 8192);
         if(cx == NULL)
             return;
         JS_SetOptions(cx, JSOPTION_VAROBJFIX | JSOPTION_JIT | JSOPTION_METHODJIT);
@@ -146,7 +146,7 @@ public:
     ~JSContext() {
         debug("js::~jscontext");
         if (cx != NULL)
-            JS_GC(cx);
+            JS_MaybeGC(cx);
         cleanup();
     }
 



Mime
View raw message