Integrated: 6980847: (fs) Files.copy needs to be "tuned"

Brian Burkhalter bpb at openjdk.org
Thu Jun 23 15:39:00 UTC 2022


On Wed, 15 Jun 2022 00:20:58 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Modify `UnixCopyFile.copyFile()` to set the transfer size to the least common multiple of the source and destination file block sizes if the block sizes are not equal. Modify `WindowsFileCopy.copy()` to set `COPY_FILE_NO_BUFFERING` in the flags passed to `CopyFileEx()` if the size of the transfer is greater than a threshold.

This pull request has now been integrated.

Changeset: b8db0c38
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b8db0c383b6ebd741f6981c89a0cafdfd9751315
Stats:     180 lines in 4 files changed: 148 ins; 4 del; 28 mod

6980847: (fs) Files.copy needs to be "tuned"

Reviewed-by: alanb

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

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


More information about the nio-dev mailing list