提交 f3189d6e 编写于 作者: S stefank

8000230: Change os::print_location to be more descriptive when a location is...

8000230: Change os::print_location to be more descriptive when a location is pointing into an object
Reviewed-by: mgerdin, twisti
上级 0fc3bfe5
...@@ -898,7 +898,11 @@ void os::print_location(outputStream* st, intptr_t x, bool verbose) { ...@@ -898,7 +898,11 @@ void os::print_location(outputStream* st, intptr_t x, bool verbose) {
print = true; print = true;
} }
if (print) { 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); oop(p)->print_on(st);
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册