hotspot/src/share/vm/opto/runtime.cpp
changeset 38133 78b95467b9f1
parent 37248 11a660dbbb8e
child 39962 128b76ddfd98
--- a/hotspot/src/share/vm/opto/runtime.cpp	Mon Apr 25 21:25:22 2016 +0300
+++ b/hotspot/src/share/vm/opto/runtime.cpp	Tue Apr 26 10:28:51 2016 +0200
@@ -1663,9 +1663,9 @@
   exception_oop->print_value_on(&tempst);
   tempst.print(" in ");
   CodeBlob* blob = CodeCache::find_blob(exception_pc);
-  if (blob->is_nmethod()) {
-    nmethod* nm = blob->as_nmethod_or_null();
-    nm->method()->print_value_on(&tempst);
+  if (blob->is_compiled()) {
+    CompiledMethod* cm = blob->as_compiled_method_or_null();
+    cm->method()->print_value_on(&tempst);
   } else if (blob->is_runtime_stub()) {
     tempst.print("<runtime-stub>");
   } else {