Skip to content

Commit

Permalink
8316050: Use hexadecimal encoding in MemorySegment::toString
Browse files Browse the repository at this point in the history
Reviewed-by: rriggs, mcimadamore
  • Loading branch information
minborg committed Sep 13, 2023
1 parent f804f86 commit f9ab115
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public int characteristics() {

@Override
public String toString() {
return "MemorySegment{ heapBase: " + heapBase() + " address:" + address() + " limit: " + length + " }";
return "MemorySegment{ heapBase: " + heapBase() + " address: 0x" + Long.toHexString(address()) + " byteSize: " + length + " }";
}

@Override
Expand Down

1 comment on commit f9ab115

@openjdk-notifier
Copy link

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.