Переглянути джерело

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.
Andreas Kling 1 рік тому
батько
коміт
fb4c632309
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      Userland/Libraries/LibJS/Runtime/VM.h

+ 1 - 1
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.