Skip to content

Commit

Permalink
8334886: jdk/jfr/api/recording/time/TestTimeMultiple.java failed with…
Browse files Browse the repository at this point in the history
… RuntimeException: getStopTime() > afterStop

Reviewed-by: mgronlun
Backport-of: 0e6b0cb
  • Loading branch information
egahlin committed Jun 27, 2024
1 parent 62d0ee9 commit 32ed615
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/hotspot/share/jfr/recorder/repository/jfrChunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jlong JfrChunk::nanos_now() {
const jlong now = seconds * 1000000000 + nanos;
if (now > last) {
last = now;
} else {
++last;
}
return last;
}
Expand Down
1 change: 0 additions & 1 deletion src/jdk.jfr/share/classes/jdk/jfr/internal/JVMSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ static long nanosToTicks(long nanos) {

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;
Expand Down

1 comment on commit 32ed615

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.