summaryrefslogtreecommitdiffstats
path: root/runtime/thread.h
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-03-26 14:53:21 -0700
committerAndreas Gampe <agampe@google.com>2014-03-27 08:09:48 -0700
commite62a07eac9ba2bef01f373832dd810a2cee9f348 (patch)
tree0711cbff68a792896cd52c60e68830195a9ec71d /runtime/thread.h
parent223efbe5164f6fe83cf04e7f9121adb29b8dd231 (diff)
downloadart-e62a07eac9ba2bef01f373832dd810a2cee9f348.tar.gz
art-e62a07eac9ba2bef01f373832dd810a2cee9f348.tar.bz2
art-e62a07eac9ba2bef01f373832dd810a2cee9f348.zip
Last patch for running tests on ARM64
This allows all run-tests to succeed with the interpreter+GenJNI setup. Change-Id: I45734e7e57340439369a613ef4329e3be2c0c4c9
Diffstat (limited to 'runtime/thread.h')
-rw-r--r--runtime/thread.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/thread.h b/runtime/thread.h
index b063b1e0a2..32875e6cfd 100644
--- a/runtime/thread.h
+++ b/runtime/thread.h
@@ -95,9 +95,13 @@ enum ThreadFlag {
class PACKED(4) Thread {
public:
// Space to throw a StackOverflowError in.
-#if __LP64__
// TODO: shrink reserved space, in particular for 64bit.
+#if defined(__x86_64__)
static constexpr size_t kStackOverflowReservedBytes = 24 * 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.
+ static constexpr size_t kStackOverflowReservedBytes = 32 * KB;
#else
static constexpr size_t kStackOverflowReservedBytes = 16 * KB;
#endif