commit | 1eda2268e84d384256814cb6c2ba2440a848f9ed | [log] [tgz] |
---|---|---|
author | Sebastien Hertz <shertz@google.com> | Mon Sep 09 16:53:14 2013 +0200 |
committer | Sebastien Hertz <shertz@google.com> | Mon Sep 09 18:11:15 2013 +0200 |
tree | b005fcb72a3ce69784ac43e176464ca1b8f49d8a | |
parent | 7095c6546e03eba2076edcf628b947179c975cb3 [diff] [blame] |
Move thread suspend check at safepoints. Move CheckSuspend on backward branch, return and exception handling. Bug: 10603072 Change-Id: Ic6c2c5066f133a345323d46edca7afde350849d8
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 bool IsBackwardBranch(int32_t branch_offset) { + return branch_offset <= 0; +} + } // namespace interpreter } // namespace art