You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2024/06/22 01:03:56 UTC
(couchdb) 01/03: Make QuickJS memory limits match Spidermonkey
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch quickjs-fixes
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 8628e03b54b4a6e30ce3923b9fe2a5aa04521f8a
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Fri Jun 21 20:40:37 2024 -0400
Make QuickJS memory limits match Spidermonkey
Spidermonkey only sets the stack limit size, so do the same for QuickJS.
---
src/couch_quickjs/c_src/couchjs.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/couch_quickjs/c_src/couchjs.c b/src/couch_quickjs/c_src/couchjs.c
index 434d264e7..7958acda5 100644
--- a/src/couch_quickjs/c_src/couchjs.c
+++ b/src/couch_quickjs/c_src/couchjs.c
@@ -373,7 +373,6 @@ static JSContext* new_cx(const couch_args* args) {
BAIL("Could not create JSRuntime");
}
- JS_SetMemoryLimit(rt, args->stack_size);
JS_SetMaxStackSize(rt, args->stack_size);
cx = JS_NewContextRaw(rt);
@@ -501,4 +500,3 @@ int main(int argc, const char* argv[])
return EXIT_SUCCESS;
}
-