mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8302760: Improve liveness/remembered set verification for G1
Reviewed-by: kbarrett, iwalulya
This commit is contained in:
parent
b0e0f37d73
commit
5d7e7e28b1
9 changed files with 195 additions and 226 deletions
|
@ -53,6 +53,16 @@ void oopDesc::print_address_on(outputStream* st) const {
|
|||
|
||||
}
|
||||
|
||||
void oopDesc::print_name_on(outputStream* st) const {
|
||||
if (*((juint*)this) == badHeapWordVal) {
|
||||
st->print_cr("BAD WORD");
|
||||
} else if (*((juint*)this) == badMetaWordVal) {
|
||||
st->print_cr("BAD META WORD");
|
||||
} else {
|
||||
st->print_cr("%s", klass()->external_name());
|
||||
}
|
||||
}
|
||||
|
||||
void oopDesc::print() { print_on(tty); }
|
||||
|
||||
void oopDesc::print_address() { print_address_on(tty); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue