Tune up Mozilla SpiderMonkey memory usage and garbage collection.

git-svn-id: https://svn.apache.org/repos/asf/tuscany/sca-cpp/trunk@1165451 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/modules/js/eval.hpp b/modules/js/eval.hpp
index 69863c9..817ef7e 100644
--- a/modules/js/eval.hpp
+++ b/modules/js/eval.hpp
@@ -70,7 +70,7 @@
     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 @@
             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 @@
     ~JSContext() {
         debug("js::~jscontext");
         if (cx != NULL)
-            JS_GC(cx);
+            JS_MaybeGC(cx);
         cleanup();
     }