summaryrefslogtreecommitdiffstats
path: root/runtime/interpreter/interpreter_common.h
diff options
context:
space:
mode:
authorSebastien Hertz <shertz@google.com>2013-09-09 16:53:14 +0200
committerSebastien Hertz <shertz@google.com>2013-09-09 18:11:15 +0200
commit1eda2268e84d384256814cb6c2ba2440a848f9ed (patch)
treeb005fcb72a3ce69784ac43e176464ca1b8f49d8a /runtime/interpreter/interpreter_common.h
parent7095c6546e03eba2076edcf628b947179c975cb3 (diff)
downloadart-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.h4
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