The time difference check might fail for scenarios such as batch compilation. It is safer to give a bigger allowance of 10 seconds instead of 0.1 sec.
Testing: The test was run for 100 times with -Xcomp option. ------------- Commit messages: - initial commit Changes: https://git.openjdk.org/jdk/pull/21413/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21413&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8324672 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/21413.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/21413/head:pull/21413 PR: https://git.openjdk.org/jdk/pull/21413