hotspot/src/share/vm/oops/klass.cpp
changeset 24322 c2978d1578e3
parent 23999 22eb7be3d99d
child 24330 4e65b09f7101
equal deleted inserted replaced
24320:394d55c783dc 24322:c2978d1578e3
   541 
   541 
   542 const char* Klass::external_name() const {
   542 const char* Klass::external_name() const {
   543   if (oop_is_instance()) {
   543   if (oop_is_instance()) {
   544     InstanceKlass* ik = (InstanceKlass*) this;
   544     InstanceKlass* ik = (InstanceKlass*) this;
   545     if (ik->is_anonymous()) {
   545     if (ik->is_anonymous()) {
   546       assert(EnableInvokeDynamic, "");
       
   547       intptr_t hash = 0;
   546       intptr_t hash = 0;
   548       if (ik->java_mirror() != NULL) {
   547       if (ik->java_mirror() != NULL) {
   549         // java_mirror might not be created yet, return 0 as hash.
   548         // java_mirror might not be created yet, return 0 as hash.
   550         hash = ik->java_mirror()->identity_hash();
   549         hash = ik->java_mirror()->identity_hash();
   551       }
   550       }