8316050: Use hexadecimal encoding in MemorySegment::toString

Reviewed-by: rriggs, mcimadamore
This commit is contained in:
Per Minborg 2023-09-13 12:45:54 +00:00
parent f804f8652d
commit f9ab115acb

View File

@ -505,7 +505,7 @@ public abstract sealed class AbstractMemorySegmentImpl
@Override
public String toString() {
return "MemorySegment{ heapBase: " + heapBase() + " address:" + address() + " limit: " + length + " }";
return "MemorySegment{ heapBase: " + heapBase() + " address: 0x" + Long.toHexString(address()) + " byteSize: " + length + " }";
}
@Override