summaryrefslogtreecommitdiff
path: root/runtime/interpreter/interpreter_switch_impl-inl.h
diff options
context:
space:
mode:
author Chris Wailes <chriswailes@google.com> 2022-08-02 16:51:39 -0700
committer Treehugger Robot <treehugger-gerrit@google.com> 2022-08-03 09:18:18 +0000
commitc0398effdea1b4991287155fc1b2ea3f1e7565e0 (patch)
treebdc49850188d673762086b3b755beadfcb81c06a /runtime/interpreter/interpreter_switch_impl-inl.h
parent74b230a4d504ebc5cbc7544df222c51d5c563353 (diff)
Remove stack protector from macro-generated functions
This CL removes the stack protector from macro-generated functions in the interpreter. This is necessary because these functions can occur in the call chain between the top level Zygote function and the fork calls in the native code. Because the stack protector is changed when a new process is forked these functions must be marked as NO_STACK_PROTECTOR. Test: atest JSScriptEngine Test: https://android-build.googleplex.com/builds/abtd/run/L64200000955748175 Bug: 241001637 Change-Id: Ib45c9c4703158acd7d83d79cd4e68869b629d7ff
Diffstat (limited to 'runtime/interpreter/interpreter_switch_impl-inl.h')
-rw-r--r--runtime/interpreter/interpreter_switch_impl-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/interpreter/interpreter_switch_impl-inl.h b/runtime/interpreter/interpreter_switch_impl-inl.h
index 62bf7d8fa3..c09050e221 100644
--- a/runtime/interpreter/interpreter_switch_impl-inl.h
+++ b/runtime/interpreter/interpreter_switch_impl-inl.h
@@ -1816,7 +1816,7 @@ class InstructionHandler {
#define OPCODE_CASE(OPCODE, OPCODE_NAME, NAME, FORMAT, i, a, e, v) \
template<bool do_access_check, bool transaction_active> \
-ASAN_NO_INLINE static bool OP_##OPCODE_NAME( \
+ASAN_NO_INLINE NO_STACK_PROTECTOR static bool OP_##OPCODE_NAME( \
SwitchImplContext* ctx, \
const instrumentation::Instrumentation* instrumentation, \
Thread* self, \