mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
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
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue