Skip to content

Commit 0e6b0cb

Browse files
committed
8334886: jdk/jfr/api/recording/time/TestTimeMultiple.java failed with RuntimeException: getStopTime() > afterStop
Reviewed-by: mgronlun
1 parent b6ffb44 commit 0e6b0cb

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/hotspot/share/jfr/recorder/repository/jfrChunk.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ jlong JfrChunk::nanos_now() {
4747
const jlong now = seconds * 1000000000 + nanos;
4848
if (now > last) {
4949
last = now;
50-
} else {
51-
++last;
5250
}
5351
return last;
5452
}

src/jdk.jfr/share/classes/jdk/jfr/internal/JVMSupport.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ static long nanosToTicks(long nanos) {
103103

104104
static long getChunkStartNanos() {
105105
long nanos = JVM.getChunkStartNanos();
106-
// JVM::getChunkStartNanos() may return a bumped timestamp, +1 ns or +2 ns.
107106
// Spin here to give Instant.now() a chance to catch up.
108107
awaitUniqueTimestamp();
109108
return nanos;

0 commit comments

Comments
 (0)