diff 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
line wrap: on
line diff
--- a/src/share/vm/oops/methodKlass.cpp	Thu May 27 22:01:55 2010 -0700
+++ b/src/share/vm/oops/methodKlass.cpp	Fri May 28 16:23:51 2010 -0700
@@ -237,7 +237,7 @@
   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();