RFR: 8274113: (fc) Tune FileChannel.transferFrom() [v2]
Alan Bateman
alanb at openjdk.java.net
Thu May 12 09:16:02 UTC 2022
On Wed, 11 May 2022 17:13:13 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> src/java.base/unix/native/libnio/ch/FileChannelImpl.c line 66:
>>
>>> 64: {
>>> 65: jlong pageSize = sysconf(_SC_PAGESIZE);
>>> 66: chan_fd = (*env)->GetFieldID(env, clazz, "fd", "Ljava/io/FileDescriptor;");
>>
>> At some point we need to remove chan_fd, instead map0 should provide the fd.
>
> I do not understand exactly what is intended here.
I'd like to see chan_fd removed. To do that would require changing map0 to take a file descriptor. For another PR of course.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8644
More information about the nio-dev
mailing list