diff --git a/include/hermes/VM/Runtime.h b/include/hermes/VM/Runtime.h index 4f1fdf90608..700cb000722 100644 --- a/include/hermes/VM/Runtime.h +++ b/include/hermes/VM/Runtime.h @@ -1626,7 +1626,7 @@ class ScopedNativeDepthReducer { // This is empirically good enough. static constexpr int kReducedNativeStackGap = #if LLVM_ADDRESS_SANITIZER_BUILD - 256 * 1024; + 128 * 1024; #else 32 * 1024; #endif diff --git a/lib/VM/Runtime.cpp b/lib/VM/Runtime.cpp index 39db4bc4282..950fd77b10d 100644 --- a/lib/VM/Runtime.cpp +++ b/lib/VM/Runtime.cpp @@ -87,7 +87,7 @@ static constexpr uint32_t kMaxSupportedNumRegisters = /// The minimum stack gap allowed from RuntimeConfig. static constexpr uint32_t kMinSupportedNativeStackGap = #if LLVM_ADDRESS_SANITIZER_BUILD - 512 * 1024; + 256 * 1024; #else 64 * 1024; #endif