RFR: 8346609: Improve MemorySegment.toString [v2]

Per Minborg pminborg at openjdk.org
Tue Jan 7 11:30:13 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:

 - Reduce elements in toString
 - Merge branch 'master' into ms-tostring-improvement2
 - Implement an alternate MS::toString
 - Improve MemorySegment::toString

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

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

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

  Stats: 12435 lines in 343 files changed: 8418 ins; 2966 del; 1051 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