From fb4c632309d1760f70650d3b55b0d5e5716ac82b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 20 Feb 2024 10:52:15 +0100 Subject: [PATCH] LibJS: Throw "call stack size exceeded" exception a bit earlier This number is pure guesswork but it appears to fix GCC builds with both ASAN and UBSAN hitting a native stack overflow before we have a chance to catch it on our Azure CI. --- Userland/Libraries/LibJS/Runtime/VM.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/VM.h b/Userland/Libraries/LibJS/Runtime/VM.h index 0437e239d2..1dba6b3530 100644 --- a/Userland/Libraries/LibJS/Runtime/VM.h +++ b/Userland/Libraries/LibJS/Runtime/VM.h @@ -98,7 +98,7 @@ public: { // Address sanitizer (ASAN) used to check for more space but // currently we can't detect the stack size with it enabled. - return m_stack_info.size_free() < 32 * KiB; + return m_stack_info.size_free() < 128 * KiB; } // TODO: Rename this function instead of providing a second argument, now that the global object is no longer passed in.