--- old/src/cpu/x86/vm/templateTable_x86_64.cpp 2014-09-08 15:36:17.765739016 +0200 +++ new/src/cpu/x86/vm/templateTable_x86_64.cpp 2014-09-08 15:36:17.489739008 +0200 @@ -1751,9 +1751,8 @@ __ testptr(rax, rax); // test result __ jcc(Assembler::zero, dispatch); // no osr if null // nmethod may have been invalidated (VM may block upon call_VM return) - __ movl(rcx, Address(rax, nmethod::entry_bci_offset())); - __ cmpl(rcx, InvalidOSREntryBci); - __ jcc(Assembler::equal, dispatch); + __ cmpb(Address(rax, nmethod::state_offset()), 0); + __ jcc(Assembler::notEqual, dispatch); // We have the address of an on stack replacement routine in eax // We need to prepare to execute the OSR method. First we must