Mercurial > hg > truffle
comparison src/share/vm/oops/klass.cpp @ 1155:4e6abf09f540
6912062: disassembler plugin needs to produce symbolic information in product mode
Summary: More informative disassembly in product mode. Also, a more consistent CompileCommand syntax.
Reviewed-by: never
author | jrose |
---|---|
date | Fri, 08 Jan 2010 13:47:01 -0800 |
parents | 4ce7240d622c |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1153:bea7a22a6f79 | 1155:4e6abf09f540 |
---|---|
539 st->print(" - klass: "); | 539 st->print(" - klass: "); |
540 obj->klass()->print_value_on(st); | 540 obj->klass()->print_value_on(st); |
541 st->cr(); | 541 st->cr(); |
542 } | 542 } |
543 | 543 |
544 #endif //PRODUCT | |
544 | 545 |
545 void Klass::oop_print_value_on(oop obj, outputStream* st) { | 546 void Klass::oop_print_value_on(oop obj, outputStream* st) { |
546 // print title | 547 // print title |
547 ResourceMark rm; // Cannot print in debug mode without this | 548 ResourceMark rm; // Cannot print in debug mode without this |
548 st->print("%s", internal_name()); | 549 st->print("%s", internal_name()); |
549 obj->print_address_on(st); | 550 obj->print_address_on(st); |
550 } | 551 } |
551 | |
552 #endif | |
553 | 552 |
554 // Verification | 553 // Verification |
555 | 554 |
556 void Klass::oop_verify_on(oop obj, outputStream* st) { | 555 void Klass::oop_verify_on(oop obj, outputStream* st) { |
557 guarantee(obj->is_oop(), "should be oop"); | 556 guarantee(obj->is_oop(), "should be oop"); |