mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
LibJS: Increase the stack limit on macOS with ASAN enabled
The macOS 14 runners on GitHub Actions fail with a stack overflow otherwise.
This commit is contained in:
parent
e1aecff2ab
commit
323c9edbb9
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/323c9edbb9 Pull-request: https://github.com/SerenityOS/serenity/pull/24263 Reviewed-by: https://github.com/ADKaster
1 changed files with 5 additions and 2 deletions
|
@ -96,9 +96,12 @@ public:
|
|||
|
||||
bool did_reach_stack_space_limit() const
|
||||
{
|
||||
// Address sanitizer (ASAN) used to check for more space but
|
||||
// currently we can't detect the stack size with it enabled.
|
||||
#if defined(AK_OS_MACOS) && defined(HAS_ADDRESS_SANITIZER)
|
||||
// We hit stack limits sooner on macOS 14 arm64 with ASAN enabled.
|
||||
return m_stack_info.size_free() < 96 * KiB;
|
||||
#else
|
||||
return m_stack_info.size_free() < 32 * KiB;
|
||||
#endif
|
||||
}
|
||||
|
||||
// TODO: Rename this function instead of providing a second argument, now that the global object is no longer passed in.
|
||||
|
|
Loading…
Reference in a new issue