--- old/src/cpu/x86/vm/templateTable_x86_64.cpp 2014-09-09 08:48:31.900282280 +0200 +++ new/src/cpu/x86/vm/templateTable_x86_64.cpp 2014-09-09 08:48:31.236282262 +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()), nmethod::in_use); + __ 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