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(); |