RFR: 8264744: (fs) Use file cloning in Linux and macOS versions of FileChannel transfer and Files copy methods [v6]

Brian Burkhalter bpb at openjdk.org
Wed Aug 10 01:05:06 UTC 2022


> Add file cloning to `java.nio.channels.FileChannel::transferTo` and `java.nio.file.Files.copy(Path,Path)`.

Brian Burkhalter has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains eight additional commits since the last revision:

 - 8264744: Remove CloneFile classes; refactor to use {Bsd,Linux}CopyFile
 - Merge
 - 8264744: Fix typo desintation -> destination
 - 8264744: Refactor into UnixCopyFile hierarchy
 - Merge
 - 8264744: Address review comments aside from refactoring
 - 8264744: Refactor into provider+dispatcher to reduce amount of JNI code
 - 8264744: (fc, fs) Support file cloning in Unix versions of FileChannel transfer and Files copy methods

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/9486/files
  - new: https://git.openjdk.org/jdk/pull/9486/files/9810352d..bd6e49ce

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=9486&range=05
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=9486&range=04-05

  Stats: 7449 lines in 382 files changed: 4571 ins; 1892 del; 986 mod
  Patch: https://git.openjdk.org/jdk/pull/9486.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9486/head:pull/9486

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


More information about the nio-dev mailing list