couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject [21/50] couch commit: updated refs/heads/2971-count-distinct to ee32cd5
Date Wed, 01 Mar 2017 16:39:08 GMT
Make couchjs -S option take effect

Previously it was used to set JS context's stack chunk size.

Instead, to be effective it should set max GC size of the runtime.

Stack chunk size was set to the recommended value: 8K

This brings back an accidentally reverted commit:

https://github.com/apache/couchdb-couch/commit/62dafe81e13d7f8e27e95057e65f76d534aa2313

by @tilgovi

Reference:

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewContext

COUCHDB-3245


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/1659fda5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/1659fda5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/1659fda5

Branch: refs/heads/2971-count-distinct
Commit: 1659fda5dd1808f55946a637fc26c73913b57e96
Parents: 54890e1
Author: Nick Vatamaniuc <vatamane@apache.org>
Authored: Wed Nov 30 12:26:56 2016 -0500
Committer: Nick Vatamaniuc <vatamane@apache.org>
Committed: Wed Nov 30 14:15:38 2016 -0500

----------------------------------------------------------------------
 priv/couch_js/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/1659fda5/priv/couch_js/main.c
----------------------------------------------------------------------
diff --git a/priv/couch_js/main.c b/priv/couch_js/main.c
index dabeb19..20096ae 100644
--- a/priv/couch_js/main.c
+++ b/priv/couch_js/main.c
@@ -387,11 +387,11 @@ main(int argc, const char* argv[])
 
     couch_args* args = couch_parse_args(argc, argv);
 
-    rt = JS_NewRuntime(64L * 1024L * 1024L);
+    rt = JS_NewRuntime(args->stack_size);
     if(rt == NULL)
         return 1;
 
-    cx = JS_NewContext(rt, args->stack_size);
+    cx = JS_NewContext(rt, 8L * 1024L);
     if(cx == NULL)
         return 1;
 


Mime
View raw message