hotspot/src/share/vm/code/relocInfo.cpp
changeset 45325 2cded43c8842
parent 42650 1f304d0c888b
child 46530 7b915076588f
--- a/hotspot/src/share/vm/code/relocInfo.cpp	Mon May 22 15:28:12 2017 -0700
+++ b/hotspot/src/share/vm/code/relocInfo.cpp	Wed May 24 16:53:58 2017 +0200
@@ -129,9 +129,9 @@
   if (nm == NULL && begin != NULL) {
     // allow nmethod to be deduced from beginning address
     CodeBlob* cb = CodeCache::find_blob(begin);
-    nm = cb->as_compiled_method_or_null();
+    nm = (cb != NULL) ? cb->as_compiled_method_or_null() : NULL;
   }
-  assert(nm != NULL, "must be able to deduce nmethod from other arguments");
+  guarantee(nm != NULL, "must be able to deduce nmethod from other arguments");
 
   _code    = nm;
   _current = nm->relocation_begin() - 1;