diff --git a/include/hermes/VM/Runtime.h b/include/hermes/VM/Runtime.h index 42d9b12e0fa..4132fd56734 100644 --- a/include/hermes/VM/Runtime.h +++ b/include/hermes/VM/Runtime.h @@ -1695,7 +1695,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 9307b5cfce0..bacf34984e7 100644 --- a/lib/VM/Runtime.cpp +++ b/lib/VM/Runtime.cpp @@ -86,7 +86,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