File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
src/java.base/unix/classes/sun/nio/fs Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -668,8 +668,11 @@ void copyFile(UnixPath source,
668668 // set to true when file and attributes copied
669669 boolean complete = false ;
670670 try {
671+ // set to true when data copied
671672 boolean copied = false ;
672- if (!directCopyNotSupported ) {
673+
674+ // Some forms of direct copy do not work on zero size files
675+ if (!directCopyNotSupported && attrs .size () > 0 ) {
673676 // copy bytes to target using platform function
674677 long comp = Blocker .begin ();
675678 try {
Original file line number Diff line number Diff line change @@ -90,12 +90,12 @@ gc/stress/TestStressG1Humongous.java 8286554 windows-x64
9090
9191runtime/cds/appcds/jigsaw/modulepath/ModulePathAndCP_JFR.java 8253437 windows-x64
9292runtime/jni/terminatedThread/TestTerminatedThread.java 8219652 aix-ppc64
93- runtime/os/TestTracePageSizes.java#no-options 8267460,8293456 linux-all
94- runtime/os/TestTracePageSizes.java#explicit-large-page-size 8267460,8293456 linux-all
95- runtime/os/TestTracePageSizes.java#compiler-options 8267460,8293456 linux-all
96- runtime/os/TestTracePageSizes.java#G1 8267460,8293456 linux-all
97- runtime/os/TestTracePageSizes.java#Parallel 8267460,8293456 linux-all
98- runtime/os/TestTracePageSizes.java#Serial 8267460,8293456 linux-all
93+ runtime/os/TestTracePageSizes.java#no-options 8267460 linux-aarch64
94+ runtime/os/TestTracePageSizes.java#explicit-large-page-size 8267460 linux-aarch64
95+ runtime/os/TestTracePageSizes.java#compiler-options 8267460 linux-aarch64
96+ runtime/os/TestTracePageSizes.java#G1 8267460 linux-aarch64
97+ runtime/os/TestTracePageSizes.java#Parallel 8267460 linux-aarch64
98+ runtime/os/TestTracePageSizes.java#Serial 8267460 linux-aarch64
9999runtime/ErrorHandling/CreateCoredumpOnCrash.java 8267433 macosx-x64
100100
101101applications/jcstress/copy.java 8229852 linux-all
You can’t perform that action at this time.
0 commit comments