< prev index next >

src/hotspot/share/code/nmethod.cpp

Print this page




2313   ResourceMark m;       // in case methods get printed via the debugger
2314   tty->print_cr("relocations:");
2315   RelocIterator iter(this);
2316   iter.print();
2317 }
2318 
2319 
2320 void nmethod::print_pcs() {
2321   ResourceMark m;       // in case methods get printed via debugger
2322   tty->print_cr("pc-bytecode offsets:");
2323   for (PcDesc* p = scopes_pcs_begin(); p < scopes_pcs_end(); p++) {
2324     p->print(this);
2325   }
2326 }
2327 
2328 void nmethod::print_recorded_oops() {
2329   tty->print_cr("Recorded oops:");
2330   for (int i = 0; i < oops_count(); i++) {
2331     oop o = oop_at(i);
2332     tty->print("#%3d: " INTPTR_FORMAT " ", i, p2i(o));
2333     if (o == (oop)Universe::non_oop_word()) {
2334       tty->print("non-oop word");
2335     } else {
2336       o->print_value();
2337     }
2338     tty->cr();
2339   }
2340 }
2341 
2342 void nmethod::print_recorded_metadata() {
2343   tty->print_cr("Recorded metadata:");
2344   for (int i = 0; i < metadata_count(); i++) {
2345     Metadata* m = metadata_at(i);
2346     tty->print("#%3d: " INTPTR_FORMAT " ", i, p2i(m));
2347     if (m == (Metadata*)Universe::non_oop_word()) {
2348       tty->print("non-metadata word");
2349     } else {
2350       m->print_value_on_maybe_null(tty);
2351     }
2352     tty->cr();
2353   }




2313   ResourceMark m;       // in case methods get printed via the debugger
2314   tty->print_cr("relocations:");
2315   RelocIterator iter(this);
2316   iter.print();
2317 }
2318 
2319 
2320 void nmethod::print_pcs() {
2321   ResourceMark m;       // in case methods get printed via debugger
2322   tty->print_cr("pc-bytecode offsets:");
2323   for (PcDesc* p = scopes_pcs_begin(); p < scopes_pcs_end(); p++) {
2324     p->print(this);
2325   }
2326 }
2327 
2328 void nmethod::print_recorded_oops() {
2329   tty->print_cr("Recorded oops:");
2330   for (int i = 0; i < oops_count(); i++) {
2331     oop o = oop_at(i);
2332     tty->print("#%3d: " INTPTR_FORMAT " ", i, p2i(o));
2333     if (o == Universe::non_oop_word()) {
2334       tty->print("non-oop word");
2335     } else {
2336       o->print_value();
2337     }
2338     tty->cr();
2339   }
2340 }
2341 
2342 void nmethod::print_recorded_metadata() {
2343   tty->print_cr("Recorded metadata:");
2344   for (int i = 0; i < metadata_count(); i++) {
2345     Metadata* m = metadata_at(i);
2346     tty->print("#%3d: " INTPTR_FORMAT " ", i, p2i(m));
2347     if (m == (Metadata*)Universe::non_oop_word()) {
2348       tty->print("non-metadata word");
2349     } else {
2350       m->print_value_on_maybe_null(tty);
2351     }
2352     tty->cr();
2353   }


< prev index next >