equal
deleted
inserted
replaced
610 // In product mode, this function doesn't have virtual function calls so |
610 // In product mode, this function doesn't have virtual function calls so |
611 // there might be some performance advantage to handling InstanceKlass here. |
611 // there might be some performance advantage to handling InstanceKlass here. |
612 const char* Klass::external_name() const { |
612 const char* Klass::external_name() const { |
613 if (is_instance_klass()) { |
613 if (is_instance_klass()) { |
614 const InstanceKlass* ik = static_cast<const InstanceKlass*>(this); |
614 const InstanceKlass* ik = static_cast<const InstanceKlass*>(this); |
615 if (ik->is_anonymous()) { |
615 if (ik->is_unsafe_anonymous()) { |
616 char addr_buf[20]; |
616 char addr_buf[20]; |
617 jio_snprintf(addr_buf, 20, "/" INTPTR_FORMAT, p2i(ik)); |
617 jio_snprintf(addr_buf, 20, "/" INTPTR_FORMAT, p2i(ik)); |
618 size_t addr_len = strlen(addr_buf); |
618 size_t addr_len = strlen(addr_buf); |
619 size_t name_len = name()->utf8_length(); |
619 size_t name_len = name()->utf8_length(); |
620 char* result = NEW_RESOURCE_ARRAY(char, name_len + addr_len + 1); |
620 char* result = NEW_RESOURCE_ARRAY(char, name_len + addr_len + 1); |