< prev index next >

src/hotspot/share/code/nmethod.cpp

Print this page




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




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


< prev index next >