RFR: 8357847: (ch) WindowsAsynchronousFileChannelImpl should support FFM Buffers
Alan Bateman
alanb at openjdk.org
Fri May 30 06:00:51 UTC 2025
On Thu, 29 May 2025 19:50:58 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Acquire the scope of a direct buffer before it is used and release it after the task has finished with it, whether the task execution is immediate or pended.
src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousFileChannelImpl.java line 452:
> 450: buf = dst;
> 451: address = ((DirectBuffer)dst).address() + pos;
> 452: IOUtil.acquireScope(dst, true);
I assume we'll have to change this to use IOUtil.bufferAddress(dst), and after the acquire.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25531#discussion_r2115194676
More information about the nio-dev
mailing list