summaryrefslogtreecommitdiff
path: root/runtime/interpreter/interpreter_switch_impl.cc
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2018-10-05 15:05:12 -0700
committer Alex Light <allight@google.com> 2018-10-05 15:46:24 -0700
commit6f22e06c0a4ca9bdcd1bb2df7352e3cca791a803 (patch)
tree6b8dbe56697244f3ab18acbc9b9ce301d149c244 /runtime/interpreter/interpreter_switch_impl.cc
parent88a2a9d7a14b67e10525d93b0ee57d9dd6bc345a (diff)
Disable ASAN for ExecuteSwitchImplCpp
ASAN bloats this function enormously and causes it to overflow the Wframe-larger-than size. This disables the ASAN checks in this function until we find a better way to fix this. Test: SANITIZE_HOST=address ASAN_OPTIONS=detect_leaks=0 ./test.py --host Bug: 73255278 Bug: 111357976 Bug: 117341496 Change-Id: I724b805727514a512cf658759d4e90610f39cbfa
Diffstat (limited to 'runtime/interpreter/interpreter_switch_impl.cc')
-rw-r--r--runtime/interpreter/interpreter_switch_impl.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/interpreter/interpreter_switch_impl.cc b/runtime/interpreter/interpreter_switch_impl.cc
index c4b03b2563..cb64ff402a 100644
--- a/runtime/interpreter/interpreter_switch_impl.cc
+++ b/runtime/interpreter/interpreter_switch_impl.cc
@@ -17,6 +17,7 @@
#include "interpreter_switch_impl.h"
#include "base/enums.h"
+#include "base/memory_tool.h"
#include "base/quasi_atomic.h"
#include "dex/dex_file_types.h"
#include "experimental_flags.h"
@@ -256,8 +257,11 @@ NO_INLINE static bool SendMethodExitEvents(Thread* self,
}
}
+// TODO On ASAN builds this function gets a huge stack frame. Since normally we run in the mterp
+// this shouldn't cause any problems for stack overflow detection. Remove this once b/117341496 is
+// fixed.
template<bool do_access_check, bool transaction_active>
-void ExecuteSwitchImplCpp(SwitchImplContext* ctx) {
+ATTRIBUTE_NO_SANITIZE_ADDRESS void ExecuteSwitchImplCpp(SwitchImplContext* ctx) {
Thread* self = ctx->self;
const CodeItemDataAccessor& accessor = ctx->accessor;
ShadowFrame& shadow_frame = ctx->shadow_frame;