Skip to content

Commit 76df73b

Browse files
author
Brian Burkhalter
committed
8293456: runtime/os/TestTracePageSizes.java sub-tests fail with "AssertionError: No memory range found for address: NNNN"
Reviewed-by: alanb, lancea
1 parent 32c7b62 commit 76df73b

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/java.base/unix/classes/sun/nio/fs/UnixFileSystem.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

test/hotspot/jtreg/ProblemList.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ gc/stress/TestStressG1Humongous.java 8286554 windows-x64
9090

9191
runtime/cds/appcds/jigsaw/modulepath/ModulePathAndCP_JFR.java 8253437 windows-x64
9292
runtime/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
9999
runtime/ErrorHandling/CreateCoredumpOnCrash.java 8267433 macosx-x64
100100

101101
applications/jcstress/copy.java 8229852 linux-all

0 commit comments

Comments
 (0)