summaryrefslogtreecommitdiffstats
path: root/sca-cpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-09-05 23:30:24 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-09-05 23:30:24 +0000
commit31ed46ac8dab9abaee7c74b8d8fb53bde49a317e (patch)
treeeaf8e3c6a9e3134065ab3a4bb53b9e70756c7492 /sca-cpp
parenta44b60593ab559f66ac3e984eb89133b8ca1e260 (diff)
Tune up Mozilla SpiderMonkey memory usage and garbage collection.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1165451 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp')
-rw-r--r--sca-cpp/trunk/modules/js/eval.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sca-cpp/trunk/modules/js/eval.hpp b/sca-cpp/trunk/modules/js/eval.hpp
index 69863c9831..817ef7e086 100644
--- a/sca-cpp/trunk/modules/js/eval.hpp
+++ b/sca-cpp/trunk/modules/js/eval.hpp
@@ -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();
}