Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/java.base/unix/classes/sun/nio/fs/UnixFileSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,11 @@ void copyFile(UnixPath source,
// set to true when file and attributes copied
boolean complete = false;
try {
// set to true when data copied
boolean copied = false;
if (!directCopyNotSupported) {

// Some forms of direct copy do not work on zero size files
if (!directCopyNotSupported && attrs.size() > 0) {
// copy bytes to target using platform function
long comp = Blocker.begin();
try {
Expand Down
12 changes: 6 additions & 6 deletions test/hotspot/jtreg/ProblemList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ gc/stress/TestStressG1Humongous.java 8286554 windows-x64

runtime/cds/appcds/jigsaw/modulepath/ModulePathAndCP_JFR.java 8253437 windows-x64
runtime/jni/terminatedThread/TestTerminatedThread.java 8219652 aix-ppc64
runtime/os/TestTracePageSizes.java#no-options 8267460,8293456 linux-all
runtime/os/TestTracePageSizes.java#explicit-large-page-size 8267460,8293456 linux-all
runtime/os/TestTracePageSizes.java#compiler-options 8267460,8293456 linux-all
runtime/os/TestTracePageSizes.java#G1 8267460,8293456 linux-all
runtime/os/TestTracePageSizes.java#Parallel 8267460,8293456 linux-all
runtime/os/TestTracePageSizes.java#Serial 8267460,8293456 linux-all
runtime/os/TestTracePageSizes.java#no-options 8267460 linux-aarch64
runtime/os/TestTracePageSizes.java#explicit-large-page-size 8267460 linux-aarch64
runtime/os/TestTracePageSizes.java#compiler-options 8267460 linux-aarch64
runtime/os/TestTracePageSizes.java#G1 8267460 linux-aarch64
runtime/os/TestTracePageSizes.java#Parallel 8267460 linux-aarch64
runtime/os/TestTracePageSizes.java#Serial 8267460 linux-aarch64
runtime/ErrorHandling/CreateCoredumpOnCrash.java 8267433 macosx-x64

applications/jcstress/copy.java 8229852 linux-all
Expand Down