diff -r ba888a4f352a -r 78b95467b9f1 hotspot/src/share/vm/ci/ciEnv.cpp --- a/hotspot/src/share/vm/ci/ciEnv.cpp Mon Apr 25 21:25:22 2016 +0300 +++ b/hotspot/src/share/vm/ci/ciEnv.cpp Tue Apr 26 10:28:51 2016 +0200 @@ -1055,14 +1055,14 @@ if (entry_bci == InvocationEntryBci) { if (TieredCompilation) { // If there is an old version we're done with it - nmethod* old = method->code(); + CompiledMethod* old = method->code(); if (TraceMethodReplacement && old != NULL) { ResourceMark rm; char *method_name = method->name_and_sig_as_C_string(); tty->print_cr("Replacing method %s", method_name); } if (old != NULL) { - old->make_not_entrant(); + old->make_not_used(); } } if (TraceNMethodInstalls) {