mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8375534: Debug method 'pp' should support compressed oops
Reviewed-by: vlivanov, phubner
This commit is contained in:
parent
38a8309b3f
commit
0f4d775085
@ -429,10 +429,8 @@ extern "C" DEBUGEXPORT void pp(void* p) {
|
||||
tty->print_cr("null");
|
||||
return;
|
||||
}
|
||||
if (Universe::heap()->is_in(p)) {
|
||||
oop obj = cast_to_oop(p);
|
||||
obj->print();
|
||||
} else {
|
||||
|
||||
if (!Universe::heap()->print_location(tty, p)) {
|
||||
// Ask NMT about this pointer.
|
||||
// GDB note: We will be using SafeFetch to access the supposed malloc header. If the address is
|
||||
// not readable, this will generate a signal. That signal will trip up the debugger: gdb will
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user