RFR: 8293331: Refactor FileDispatcherImpl into operating system-specific components [v8]

Vyom Tewari vtewari at openjdk.org
Thu Sep 22 06:04:17 UTC 2022


On Thu, 22 Sep 2022 00:32:15 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Break up `sun.nio.ch.FileChannelImpl` in a manner similar but not identical to the refactoring of `sun.nio.fs.UnixFileSystem` performed in #10093.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8293331: Add missing init() call in UnixFileDispatcherImpl static initializer

src/java.base/linux/classes/sun/nio/ch/FileDispatcherImpl.java line 51:

> 49:     // -- Native methods --
> 50: 
> 51:     static native long transferTo0(FileDescriptor src, long position,

can we make these native methods(transferTo0, transferFrom0 etc) to private access specifier,  these methods are not called from outside ?.

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

PR: https://git.openjdk.org/jdk/pull/10154


More information about the nio-dev mailing list