From c8d28d8558522fab46a397ee12cf47a834d928c1 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 8 Oct 2024 16:14:27 +0200 Subject: [PATCH] [quickjs] Increased memory limit to 128MiB --- src/js/quickjs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/quickjs.c b/src/js/quickjs.c index b72999479..9f9df52c4 100644 --- a/src/js/quickjs.c +++ b/src/js/quickjs.c @@ -287,8 +287,8 @@ quickjs_get_interpreter(struct ecmascript_interpreter *interpreter) struct document_view *doc_view = vs->doc_view; struct document *document = doc_view->document; - JS_SetMemoryLimit(interpreter->rt, 64 * 1024 * 1024); - JS_SetGCThreshold(interpreter->rt, 16 * 1024 * 1024); + JS_SetMemoryLimit(interpreter->rt, 128 * 1024 * 1024); + JS_SetGCThreshold(interpreter->rt, 32 * 1024 * 1024); ctx = JS_NewContext(interpreter->rt);