< prev index next >

src/hotspot/share/code/dependencies.cpp

Print this page
*** 829,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
--- 829,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 >