--- a/hotspot/src/share/vm/runtime/safepoint.cpp Mon Apr 25 21:25:22 2016 +0300
+++ b/hotspot/src/share/vm/runtime/safepoint.cpp Tue Apr 26 10:28:51 2016 +0200
@@ -1010,8 +1010,8 @@
address real_return_addr = thread()->saved_exception_pc();
CodeBlob *cb = CodeCache::find_blob(real_return_addr);
- assert(cb != NULL && cb->is_nmethod(), "return address should be in nmethod");
- nmethod* nm = (nmethod*)cb;
+ assert(cb != NULL && cb->is_compiled(), "return address should be in nmethod");
+ CompiledMethod* nm = (CompiledMethod*)cb;
// Find frame of caller
frame stub_fr = thread()->last_frame();