LibJS: Increase the stack limit when ASAN enabled

Linux, x86_64, Sanitizer, GNU runners on GitHub Action fail randomly
with a stack overflow on recursive test called:
Libraries/LibJS/Tests/runtime-error-call-stack-size.js
This commit is contained in:
Rocco Corsi 2025-10-12 09:30:18 -04:00 committed by Tim Flynn
parent 460ffcbe1d
commit 44d2a74eeb
Notes: github-actions[bot] 2025-10-13 13:09:09 +00:00

View file

@ -108,8 +108,8 @@ public:
bool did_reach_stack_space_limit() const
{
#if defined(AK_OS_MACOS) && defined(HAS_ADDRESS_SANITIZER)
// We hit stack limits sooner on macOS 14 arm64 with ASAN enabled.
#if defined(HAS_ADDRESS_SANITIZER)
// We hit stack limits sooner with ASAN enabled.
return m_stack_info.size_free() < 96 * KiB;
#else
return m_stack_info.size_free() < 32 * KiB;