summaryrefslogtreecommitdiffstats
path: root/runtime/thread.h
diff options
context:
space:
mode:
authorSerguei Katkov <serguei.i.katkov@intel.com>2014-05-14 17:00:05 +0700
committerSerguei Katkov <serguei.i.katkov@intel.com>2014-05-19 12:38:25 +0700
commitd508006074c54a75a44520d3015b2504854c0026 (patch)
treecf0bcbc14ea1f72777972033d9c687d023686d02 /runtime/thread.h
parentbf17a08fb48fa296acb09904d4c10ba42f63f55d (diff)
downloadart-d508006074c54a75a44520d3015b2504854c0026.tar.gz
art-d508006074c54a75a44520d3015b2504854c0026.tar.bz2
art-d508006074c54a75a44520d3015b2504854c0026.zip
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>
Diffstat (limited to 'runtime/thread.h')
-rw-r--r--runtime/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/thread.h b/runtime/thread.h
index be7634f8be..f7aef429f4 100644
--- a/runtime/thread.h
+++ b/runtime/thread.h
@@ -98,7 +98,7 @@ class Thread {
// 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.