Mercurial > hg > truffle
comparison src/share/vm/oops/methodKlass.cpp @ 1573:beb77f0d41b3
6957004: MethodComparator uses the wrong CP index accessor
Summary: Change two uses of get_index_u2 to get_index_u2_cpcache; also tweak some debugging print functions
Reviewed-by: kvn
author | jrose |
---|---|
date | Fri, 28 May 2010 16:23:51 -0700 |
parents | cd5dbf694d45 |
children | e9ff18c4ace7 |
comparison
equal
deleted
inserted
replaced
1572:87fc6aca31ab | 1573:beb77f0d41b3 |
---|---|
235 ResourceMark rm; | 235 ResourceMark rm; |
236 assert(obj->is_method(), "must be method"); | 236 assert(obj->is_method(), "must be method"); |
237 Klass::oop_print_on(obj, st); | 237 Klass::oop_print_on(obj, st); |
238 methodOop m = methodOop(obj); | 238 methodOop m = methodOop(obj); |
239 // get the effect of PrintOopAddress, always, for methods: | 239 // get the effect of PrintOopAddress, always, for methods: |
240 st->print (" - this oop: "INTPTR_FORMAT, (intptr_t)m); | 240 st->print_cr(" - this oop: "INTPTR_FORMAT, (intptr_t)m); |
241 st->print (" - method holder: "); m->method_holder()->print_value_on(st); st->cr(); | 241 st->print (" - method holder: "); m->method_holder()->print_value_on(st); st->cr(); |
242 st->print (" - constants: "INTPTR_FORMAT" ", (address)m->constants()); | 242 st->print (" - constants: "INTPTR_FORMAT" ", (address)m->constants()); |
243 m->constants()->print_value_on(st); st->cr(); | 243 m->constants()->print_value_on(st); st->cr(); |
244 st->print (" - access: 0x%x ", m->access_flags().as_int()); m->access_flags().print_on(st); st->cr(); | 244 st->print (" - access: 0x%x ", m->access_flags().as_int()); m->access_flags().print_on(st); st->cr(); |
245 st->print (" - name: "); m->name()->print_value_on(st); st->cr(); | 245 st->print (" - name: "); m->name()->print_value_on(st); st->cr(); |