Mercurial > hg > truffle
comparison src/share/vm/oops/klass.cpp @ 1042:4926bf2d292f
Merge
author | cfang |
---|---|
date | Thu, 29 Oct 2009 08:49:31 -0700 |
parents | 987e948ebbc8 |
children | 4ce7240d622c |
comparison
equal
deleted
inserted
replaced
1036:d912f17c1ae4 | 1042:4926bf2d292f |
---|---|
494 strcpy(result + result_len, hash_buf); | 494 strcpy(result + result_len, hash_buf); |
495 assert(strlen(result) == result_len + hash_len, ""); | 495 assert(strlen(result) == result_len + hash_len, ""); |
496 return result; | 496 return result; |
497 } | 497 } |
498 } | 498 } |
499 if (name() == NULL) return "<unknown>"; | |
499 return name()->as_klass_external_name(); | 500 return name()->as_klass_external_name(); |
500 } | 501 } |
501 | 502 |
502 | 503 |
503 char* Klass::signature_name() const { | 504 const char* Klass::signature_name() const { |
505 if (name() == NULL) return "<unknown>"; | |
504 return name()->as_C_string(); | 506 return name()->as_C_string(); |
505 } | 507 } |
506 | 508 |
507 // Unless overridden, modifier_flags is 0. | 509 // Unless overridden, modifier_flags is 0. |
508 jint Klass::compute_modifier_flags(TRAPS) const { | 510 jint Klass::compute_modifier_flags(TRAPS) const { |