RFR: 8357268: Use JavaNioAccess.getBufferAddress rather than DirectBuffer.address() [v10]

Per Minborg pminborg at openjdk.org
Tue May 27 11:50:14 UTC 2025


> This PR proposes to use  `JavaNioAccess::getBufferAdress` rather than `DirectBuffer::address` so that `Buffer` instances backed by MemorySegment instances can be used in classes that were not covered by https://github.com/openjdk/jdk/pull/25321
> 
> This PR passes tier1, tier2, and tier3 tests on multiple platforms and configurations.

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 13 additional commits since the last revision:

 - Merge branch 'master' into jdk-segment-access
 - Revert copyright year
 - Revoke changes in WAFCI
 - Address comments
 - Fix copyright year
 - Update after comments
 - Update after comments
 - Add tests
 - Clean up
 - Revoke changes in classes that is always using DirectBuffer
 - ... and 3 more: https://git.openjdk.org/jdk/compare/ede001e6...1eb284df

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25324/files
  - new: https://git.openjdk.org/jdk/pull/25324/files/c2a901b3..1eb284df

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25324&range=09
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25324&range=08-09

  Stats: 57006 lines in 826 files changed: 38176 ins; 13844 del; 4986 mod
  Patch: https://git.openjdk.org/jdk/pull/25324.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25324/head:pull/25324

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


More information about the net-dev mailing list