8316050: Use hexadecimal encoding in MemorySegment::toString
Reviewed-by: rriggs, mcimadamore
This commit is contained in:
parent
f804f8652d
commit
f9ab115acb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user