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

Per Minborg pminborg at openjdk.org
Mon May 26 14:22:10 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 incrementally with one additional commit since the last revision:

  Address comments

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25324/files
  - new: https://git.openjdk.org/jdk/pull/25324/files/d6b4233e..ec233e0c

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

  Stats: 10 lines in 3 files changed: 3 ins; 2 del; 5 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 nio-dev mailing list