src/hotspot/share/opto/runtime.cpp
changeset 51078 fc6cfe40e32a
parent 50860 480a96a43b62
child 57603 f9d9bed12d1a
child 58678 9cf78a70fa4f
--- a/src/hotspot/share/opto/runtime.cpp	Fri Jul 13 11:21:55 2018 +0800
+++ b/src/hotspot/share/opto/runtime.cpp	Thu Jul 12 16:31:28 2018 +0200
@@ -1608,7 +1608,12 @@
     }
     int bci = jvms->bci();
     if (bci < 0) bci = 0;
-    st.print("%s.%s@%d", m->holder()->name()->as_utf8(), m->name()->as_utf8(), bci);
+    if (m != NULL) {
+      st.print("%s.%s", m->holder()->name()->as_utf8(), m->name()->as_utf8());
+    } else {
+      st.print("no method");
+    }
+    st.print("@%d", bci);
     // To print linenumbers instead of bci use: m->line_number_from_bci(bci)
   }
   NamedCounter* c;