RFR: 8357268: Use JavaNioAccess.getBufferAddress rather than DirectBuffer.address() [v3]
Alan Bateman
alanb at openjdk.org
Tue May 20 13:40:52 UTC 2025
On Tue, 20 May 2025 12:54:06 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> 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:
>
> Clean up
A question for folks onsecurity-dev. Are there tests for Cipher.doFinal, CipherSpi.engineUpdate, etc. that exercises cases where the ByteBuffer obtained from a memory segment?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25324#issuecomment-2894448506
More information about the nio-dev
mailing list