src/hotspot/share/oops/constantPool.cpp
changeset 51338 aa3bfacc912c
parent 50971 34872a21af82
child 51425 4e9667589c43
--- a/src/hotspot/share/oops/constantPool.cpp	Wed Aug 08 15:11:11 2018 -0400
+++ b/src/hotspot/share/oops/constantPool.cpp	Wed Aug 08 15:24:21 2018 -0400
@@ -2490,9 +2490,9 @@
   if (has_preresolution()) st->print("/preresolution");
   if (operands() != NULL)  st->print("/operands[%d]", operands()->length());
   print_address_on(st);
-  st->print(" for ");
-  pool_holder()->print_value_on(st);
   if (pool_holder() != NULL) {
+    st->print(" for ");
+    pool_holder()->print_value_on(st);
     bool extra = (pool_holder()->constants() != this);
     if (extra)  st->print(" (extra)");
   }