From 31ed46ac8dab9abaee7c74b8d8fb53bde49a317e Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 5 Sep 2011 23:30:24 +0000 Subject: 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 --- sca-cpp/trunk/modules/js/eval.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sca-cpp') 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(); } -- cgit v1.2.3