Mercurial > hg > truffle
comparison src/share/vm/classfile/classFileParser.cpp @ 657:715dceaa89b7
6603316: Improve instrumentation for classes loaded at startup
Reviewed-by: xlu, mchung
author | acorn |
---|---|
date | Wed, 25 Mar 2009 13:09:28 -0400 |
parents | 4aaa9f5e02a8 |
children | e5b0439ef4ae |
comparison
equal
deleted
inserted
replaced
655:60bfce711da4 | 657:715dceaa89b7 |
---|---|
3228 | 3228 |
3229 if (TraceClassResolution) { | 3229 if (TraceClassResolution) { |
3230 // print out the superclass. | 3230 // print out the superclass. |
3231 const char * from = Klass::cast(this_klass())->external_name(); | 3231 const char * from = Klass::cast(this_klass())->external_name(); |
3232 if (this_klass->java_super() != NULL) { | 3232 if (this_klass->java_super() != NULL) { |
3233 tty->print("RESOLVE %s %s\n", from, instanceKlass::cast(this_klass->java_super())->external_name()); | 3233 tty->print("RESOLVE %s %s (super)\n", from, instanceKlass::cast(this_klass->java_super())->external_name()); |
3234 } | 3234 } |
3235 // print out each of the interface classes referred to by this class. | 3235 // print out each of the interface classes referred to by this class. |
3236 objArrayHandle local_interfaces(THREAD, this_klass->local_interfaces()); | 3236 objArrayHandle local_interfaces(THREAD, this_klass->local_interfaces()); |
3237 if (!local_interfaces.is_null()) { | 3237 if (!local_interfaces.is_null()) { |
3238 int length = local_interfaces->length(); | 3238 int length = local_interfaces->length(); |
3239 for (int i = 0; i < length; i++) { | 3239 for (int i = 0; i < length; i++) { |
3240 klassOop k = klassOop(local_interfaces->obj_at(i)); | 3240 klassOop k = klassOop(local_interfaces->obj_at(i)); |
3241 instanceKlass* to_class = instanceKlass::cast(k); | 3241 instanceKlass* to_class = instanceKlass::cast(k); |
3242 const char * to = to_class->external_name(); | 3242 const char * to = to_class->external_name(); |
3243 tty->print("RESOLVE %s %s\n", from, to); | 3243 tty->print("RESOLVE %s %s (interface)\n", from, to); |
3244 } | 3244 } |
3245 } | 3245 } |
3246 } | 3246 } |
3247 | 3247 |
3248 #ifndef PRODUCT | 3248 #ifndef PRODUCT |