mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
6957004: MethodComparator uses the wrong CP index accessor
Change two uses of get_index_u2 to get_index_u2_cpcache; also tweak some debugging print functions Reviewed-by: kvn
This commit is contained in:
parent
4da8658b14
commit
49cbc41c82
3 changed files with 10 additions and 13 deletions
|
@ -237,7 +237,7 @@ void methodKlass::oop_print_on(oop obj, outputStream* st) {
|
|||
Klass::oop_print_on(obj, st);
|
||||
methodOop m = methodOop(obj);
|
||||
// get the effect of PrintOopAddress, always, for methods:
|
||||
st->print (" - this oop: "INTPTR_FORMAT, (intptr_t)m);
|
||||
st->print_cr(" - this oop: "INTPTR_FORMAT, (intptr_t)m);
|
||||
st->print (" - method holder: "); m->method_holder()->print_value_on(st); st->cr();
|
||||
st->print (" - constants: "INTPTR_FORMAT" ", (address)m->constants());
|
||||
m->constants()->print_value_on(st); st->cr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue