8334886: jdk/jfr/api/recording/time/TestTimeMultiple.java failed with RuntimeException: getStopTime() > afterStop

Reviewed-by: mgronlun
This commit is contained in:
Erik Gahlin 2024-06-27 15:38:06 +00:00
parent b6ffb442ac
commit 0e6b0cbaaa
2 changed files with 0 additions and 3 deletions

View File

@ -47,8 +47,6 @@ jlong JfrChunk::nanos_now() {
const jlong now = seconds * 1000000000 + nanos;
if (now > last) {
last = now;
} else {
++last;
}
return last;
}

View File

@ -103,7 +103,6 @@ public final class JVMSupport {
static long getChunkStartNanos() {
long nanos = JVM.getChunkStartNanos();
// JVM::getChunkStartNanos() may return a bumped timestamp, +1 ns or +2 ns.
// Spin here to give Instant.now() a chance to catch up.
awaitUniqueTimestamp();
return nanos;