From 75f5a0bae9a288b71513d72ee1856bf67ad7b338 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 12 Nov 2025 07:37:37 -0500 Subject: [PATCH] Increase default stack sizes for LSAN --- vm_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm_core.h b/vm_core.h index 79d12f9ee4..9f794d8678 100644 --- a/vm_core.h +++ b/vm_core.h @@ -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))