RFR: 8358537: (bf) JavaNioAccess::getBufferAddress bypasses direct buffer MemorySession state check [v2]

Brian Burkhalter bpb at openjdk.org
Thu Jun 5 15:18:52 UTC 2025


On Wed, 4 Jun 2025 14:29:13 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Add package-scope `long java.nio.Buffer::address()` to simply return the value of the `address` instance variable; use this method in `JavaNioAccess::getBufferAddress`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8358537: Revert MemorySegments test change

The test in #25531 covers `AsynchronousFileChannel`.

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

PR Comment: https://git.openjdk.org/jdk/pull/25631#issuecomment-2944952257


More information about the nio-dev mailing list