Skip to content
Permalink
Browse files
8256320: ZGC: Update zDebug to support UseCompressedClassPointers
Reviewed-by: pliden
  • Loading branch information
stefank committed Nov 13, 2020
1 parent 5973e91 commit c8dd0b53ee37e103e02d256268521ea24510f8bb
Showing 1 changed file with 6 additions and 1 deletion.
@@ -50,7 +50,12 @@ define zpo
end
printf "\t Page: %llu\n", ((uintptr_t)$obj & ZAddressOffsetMask) >> ZGranuleSizeShift
x/16gx $obj
printf "Mark: 0x%016llx\tKlass: %s\n", (uintptr_t)$obj->_mark, (char*)$obj->_metadata->_klass->_name->_body
if (UseCompressedClassPointers)
set $klass = (Klass*)(void*)((uintptr_t)CompressedKlassPointers::_narrow_klass._base +((uintptr_t)$obj->_metadata->_compressed_klass << CompressedKlassPointers::_narrow_klass._shift))
else
set $klass = $obj->_metadata->_klass
end
printf "Mark: 0x%016llx\tKlass: %s\n", (uintptr_t)$obj->_mark, (char*)$klass->_name->_body
end

# Print heap page by page table index

1 comment on commit c8dd0b5

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on c8dd0b5 Nov 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.