hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp
changeset 26705 fca1785e7084
parent 26142 038e0f01b4a9
child 28650 772aaab2582f
--- a/hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp	Fri Sep 12 04:22:19 2014 -0700
+++ b/hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp	Mon Sep 15 08:08:22 2014 +0200
@@ -330,7 +330,7 @@
         if (do_OSR) {                                                                               \
           nmethod* osr_nmethod;                                                                     \
           OSR_REQUEST(osr_nmethod, branch_pc);                                                      \
-          if (osr_nmethod != NULL && osr_nmethod->osr_entry_bci() != InvalidOSREntryBci) {          \
+          if (osr_nmethod != NULL && osr_nmethod->is_in_use()) {                                    \
             intptr_t* buf;                                                                          \
             /* Call OSR migration with last java frame only, no checks. */                          \
             CALL_VM_NAKED_LJF(buf=SharedRuntime::OSR_migration_begin(THREAD));                      \