Increase default stack sizes for LSAN

This commit is contained in:
Peter Zhu 2025-11-12 07:37:37 -05:00
parent 9f7ef20de1
commit 75f5a0bae9
Notes: git 2025-11-12 23:45:01 +00:00

View File

@ -844,7 +844,7 @@ extern bool ruby_vm_during_cleanup;
#define RUBY_VM_FIBER_MACHINE_STACK_SIZE_MIN ( 16 * 1024 * sizeof(VALUE)) /* 64 KB or 128 KB */
#endif
#if __has_feature(memory_sanitizer) || __has_feature(address_sanitizer)
#if __has_feature(memory_sanitizer) || __has_feature(address_sanitizer) || __has_feature(leak_sanitizer)
/* It seems sanitizers consume A LOT of machine stacks */
#undef RUBY_VM_THREAD_MACHINE_STACK_SIZE
#define RUBY_VM_THREAD_MACHINE_STACK_SIZE (1024 * 1024 * sizeof(VALUE))