The timing of the test can be disturbed by -Xcomp so do not run with -Xcomp. The problem appears with the Graal compiler but may also occur on other platforms.
------------- Commit messages: - 8315721: CloseRace.java#id0 fails transiently on libgraal Changes: https://git.openjdk.org/jdk/pull/15930/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15930&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8315721 Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/15930.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15930/head:pull/15930 PR: https://git.openjdk.org/jdk/pull/15930
