equal
deleted
inserted
replaced
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 } |