RFR: 8286671: (fc) Modify sun.nio.ch.FileChannelImpl.map0() to accept a FileDescriptor parameter

Jaikiran Pai jpai at openjdk.java.net
Fri May 13 06:57:58 UTC 2022


On Thu, 12 May 2022 23:34:35 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Add a `FileDescriptor` as the first parameter of `map0()` and remove from the corresponding native code the use of `fd_chan`.

The copyright year on the Windows variant of `FileChannelImpl.c` will need an update.

src/java.base/windows/native/libnio/ch/FileChannelImpl.c line 41:

> 39: /**************************************************************
> 40:  * static method to store field ID's in initializers
> 41:  * and retrieve the allocation granularity

Should we remove the "to store field ID's in initializers" part from this comment?

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

PR: https://git.openjdk.java.net/jdk/pull/8689


More information about the nio-dev mailing list