8000230: Change os::print_location to be more descriptive when a location is pointing into an object
Reviewed-by: mgerdin, twisti
This commit is contained in:
parent
74f09797c9
commit
ddd6138b95
@ -898,7 +898,11 @@ void os::print_location(outputStream* st, intptr_t x, bool verbose) {
|
||||
print = true;
|
||||
}
|
||||
if (print) {
|
||||
st->print_cr(INTPTR_FORMAT " is an oop", addr);
|
||||
if (p == (HeapWord*) addr) {
|
||||
st->print_cr(INTPTR_FORMAT " is an oop", addr);
|
||||
} else {
|
||||
st->print_cr(INTPTR_FORMAT " is pointing into object: " INTPTR_FORMAT, addr, p);
|
||||
}
|
||||
oop(p)->print_on(st);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user