diff options
Diffstat (limited to 'runtime/interpreter/interpreter_switch_impl-inl.h')
| -rw-r--r-- | runtime/interpreter/interpreter_switch_impl-inl.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/runtime/interpreter/interpreter_switch_impl-inl.h b/runtime/interpreter/interpreter_switch_impl-inl.h index 07a04fe4bb..8e16e04bfa 100644 --- a/runtime/interpreter/interpreter_switch_impl-inl.h +++ b/runtime/interpreter/interpreter_switch_impl-inl.h @@ -237,16 +237,18 @@ class InstructionHandler { if (UNLIKELY(Instrumentation()->HasBranchListeners())) { Instrumentation()->Branch(Self(), shadow_frame_.GetMethod(), DexPC(), offset); } - // TODO: Do OSR only on back-edges and check if OSR code is ready here. - JValue result; - if (jit::Jit::MaybeDoOnStackReplacement(Self(), - shadow_frame_.GetMethod(), - DexPC(), - offset, - &result)) { - ctx_->result = result; - ExitInterpreterLoop(); - return false; + if (!transaction_active) { + // TODO: Do OSR only on back-edges and check if OSR code is ready here. + JValue result; + if (jit::Jit::MaybeDoOnStackReplacement(Self(), + shadow_frame_.GetMethod(), + DexPC(), + offset, + &result)) { + ctx_->result = result; + ExitInterpreterLoop(); + return false; + } } SetNextInstruction(inst_->RelativeAt(offset)); if (offset <= 0) { // Back-edge. |