RFR: 8278268 - (ch) InputStream returned by Channels.newInputStream should have fast path for FileChannel targets [v9]

Markus KARG duke at openjdk.java.net
Thu Dec 16 17:01:07 UTC 2021


> This sub-issue defines the work to be done to implement JDK-8265891 solely for the particular case of FileChannel.transferFrom(ReadableByteChannel), including special treatment of SelectableByteChannel.

Markus KARG has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains four commits:

 - Ignoring the case of intermittend zero reads as proposed by Alan Bateman
   
   Signed-off-by: Markus Karg <markus at headcrashing.eu>
 - Simplified using checked function
   
   Signed-off-by: Markus Karg <markus at headcrashing.eu>
 - Common implementation for all 2 GB tests
   
   Signed-off-by: Markus Karg <markus at headcrashing.eu>
 - Implementing 8278268
   
   Signed-off-by: Markus Karg <markus at headcrashing.eu>

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

Changes: https://git.openjdk.java.net/jdk/pull/6711/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6711&range=08
  Stats: 112 lines in 2 files changed: 84 ins; 5 del; 23 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6711.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6711/head:pull/6711

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


More information about the nio-dev mailing list