src/hotspot/share/code/compiledIC.cpp
changeset 53415 698ee6095c76
parent 52858 dad45affbdaa
child 53652 262afafdb266
--- a/src/hotspot/share/code/compiledIC.cpp	Tue Jan 22 10:42:41 2019 +0300
+++ b/src/hotspot/share/code/compiledIC.cpp	Tue Jan 22 08:47:01 2019 +0100
@@ -482,10 +482,10 @@
     if (TraceICs) {
       ResourceMark rm(thread);
       assert(info.cached_metadata() == NULL || info.cached_metadata()->is_klass(), "must be");
-      tty->print_cr ("IC@" INTPTR_FORMAT ": monomorphic to compiled (rcvr klass) %s: %s",
+      tty->print_cr ("IC@" INTPTR_FORMAT ": monomorphic to compiled (rcvr klass = %s) %s",
         p2i(instruction_address()),
-        ((Klass*)info.cached_metadata())->print_value_string(),
-        (safe) ? "" : "via stub");
+        (info.cached_metadata() != NULL) ? ((Klass*)info.cached_metadata())->print_value_string() : "NULL",
+        (safe) ? "" : " via stub");
     }
   }
   // We can't check this anymore. With lazy deopt we could have already