RFR: JDK-8273038: ChannelInputStream.transferTo() uses FileChannel.transferTo(FileChannel) [v4]
Alan Bateman
alanb at openjdk.java.net
Sun Aug 29 16:27:25 UTC 2021
On Sun, 29 Aug 2021 12:14:58 GMT, Markus KARG <github.com+1701815+mkarg at openjdk.org> wrote:
> * 2GB+: IMHO makes not much sense to add such a heavy weight test as the expected benefit will not really outweigh the test complexity needed,
I'll try to get time to look at what you have in the next few days but just to say that the suggestion for exercising files > 2GB is because it's beyond the limit of the underlying sendfile. You should be able to check this quickly by printing the iteration count in ChannelInputStream.transferTo, it is always 1?
-------------
PR: https://git.openjdk.java.net/jdk/pull/5209
More information about the nio-dev
mailing list