Increase the size of guard for Stack Overflow (x86_64)
24K stack overflow guard is not enough for 64-bit working in
Interpreter mode. ART unit test 107-int-math2 crashes with it.
Patch increases the size to 32KB.
Change-Id: I8935c0f50f87c5ae0784dbae8be9db57ce2aebb3
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
diff --git a/runtime/thread.h b/runtime/thread.h
index be7634f..f7aef42 100644
--- a/runtime/thread.h
+++ b/runtime/thread.h
@@ -98,7 +98,7 @@
// Space to throw a StackOverflowError in.
// TODO: shrink reserved space, in particular for 64bit.
#if defined(__x86_64__)
- static constexpr size_t kStackOverflowReservedBytes = 24 * KB;
+ static constexpr size_t kStackOverflowReservedBytes = 32 * KB;
#elif defined(__aarch64__)
// Worst-case, we would need about 2.6x the amount of x86_64 for many more registers.
// But this one works rather well.