diff options
author | Sebastien Hertz <shertz@google.com> | 2013-09-09 16:53:14 +0200 |
---|---|---|
committer | Sebastien Hertz <shertz@google.com> | 2013-09-09 18:11:15 +0200 |
commit | 1eda2268e84d384256814cb6c2ba2440a848f9ed (patch) | |
tree | b005fcb72a3ce69784ac43e176464ca1b8f49d8a /runtime/interpreter/interpreter_common.h | |
parent | 7095c6546e03eba2076edcf628b947179c975cb3 (diff) | |
download | art-1eda2268e84d384256814cb6c2ba2440a848f9ed.zip art-1eda2268e84d384256814cb6c2ba2440a848f9ed.tar.gz art-1eda2268e84d384256814cb6c2ba2440a848f9ed.tar.bz2 |
Move thread suspend check at safepoints.
Move CheckSuspend on backward branch, return and exception handling.
Bug: 10603072
Change-Id: Ic6c2c5066f133a345323d46edca7afde350849d8
Diffstat (limited to 'runtime/interpreter/interpreter_common.h')
-rw-r--r-- | runtime/interpreter/interpreter_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/interpreter/interpreter_common.h b/runtime/interpreter/interpreter_common.h index 4d9317f..8cd526a 100644 --- a/runtime/interpreter/interpreter_common.h +++ b/runtime/interpreter/interpreter_common.h @@ -510,6 +510,10 @@ static inline void TraceExecution(const ShadowFrame& shadow_frame, const Instruc } } +static inline bool IsBackwardBranch(int32_t branch_offset) { + return branch_offset <= 0; +} + } // namespace interpreter } // namespace art |