RFR: 8346609: Improve MemorySegment.toString [v3]

Per Minborg pminborg at openjdk.org
Tue Jan 7 12:17:15 UTC 2025


> This PR proposes to improve the current `MemorySegment.toString()` method from:
> 
> `MemorySegment{ address: 0x60000264c540, byteSize: 8 }`
> 
> to
> 
> `MemorySegment{ native, address: 0x60000264c540, byteSize: 8}`
> 
> Tests passes tier1-tier3

Per Minborg has updated the pull request incrementally with one additional commit since the last revision:

  Update segment type logic

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/22826/files
  - new: https://git.openjdk.org/jdk/pull/22826/files/d960678e..08ed7c75

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22826&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22826&range=01-02

  Stats: 10 lines in 1 file changed: 9 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/22826.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22826/head:pull/22826

PR: https://git.openjdk.org/jdk/pull/22826


More information about the core-libs-dev mailing list