< prev index next >

src/hotspot/share/code/dependencies.cpp

Print this page
*** 835,13 ***
  
      st->cr();
    }
    if (witness != nullptr) {
      bool put_star = !Dependencies::is_concrete_klass(witness);
!     st->print_cr("  witness = %s%s",
!                   (put_star? "*": ""),
!                   witness->external_name());
    }
  }
  
  void Dependencies::DepStream::log_dependency(Klass* witness) {
    if (_deps == nullptr && xtty == nullptr)  return;  // fast cutout for runtime
--- 835,17 ---
  
      st->cr();
    }
    if (witness != nullptr) {
      bool put_star = !Dependencies::is_concrete_klass(witness);
!     st->print("  witness = %s%s",
!               (put_star ? "*": ""),
!               witness->external_name());
+     if (witness->is_instance_klass()) {
+       st->print(" (%s)", InstanceKlass::cast(witness)->init_state_name());
+     }
+     st->cr();
    }
  }
  
  void Dependencies::DepStream::log_dependency(Klass* witness) {
    if (_deps == nullptr && xtty == nullptr)  return;  // fast cutout for runtime
< prev index next >