8375534: Debug method 'pp' should support compressed oops

Reviewed-by: vlivanov, phubner
This commit is contained in:
Tobias Hartmann 2026-01-22 06:56:51 +00:00
parent 38a8309b3f
commit 0f4d775085

View File

@ -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