mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-15 18:33:41 +00:00
8334886: jdk/jfr/api/recording/time/TestTimeMultiple.java failed with RuntimeException: getStopTime() > afterStop
Reviewed-by: mgronlun
This commit is contained in:
parent
b6ffb442ac
commit
0e6b0cbaaa
@ -47,8 +47,6 @@ jlong JfrChunk::nanos_now() {
|
||||
const jlong now = seconds * 1000000000 + nanos;
|
||||
if (now > last) {
|
||||
last = now;
|
||||
} else {
|
||||
++last;
|
||||
}
|
||||
return last;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user