Skip to content

Commit 3b4600c

Browse files
committed
svm: adopt "JDK-8334886: jdk/jfr/api/recording/time/TestTimeMultiple.java failed with RuntimeException: getStopTime() > afterStop"
1 parent 8bee15a commit 3b4600c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/util/PlatformTimeUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected PlatformTimeUtils() {
4949
public record SecondsNanos(long seconds, long nanos) {
5050
}
5151

52-
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+3/src/hotspot/share/jfr/recorder/repository/jfrChunk.cpp#L38-L54")
52+
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+5/src/hotspot/share/jfr/recorder/repository/jfrChunk.cpp#L38-L52")
5353
public long nanosNow() {
5454
// Use same clock source as Instant.now() to ensure
5555
// that Recording::getStopTime() returns an Instant that
@@ -60,8 +60,6 @@ public long nanosNow() {
6060
long now = seconds * 1000000000 + nanos;
6161
if (now > last) {
6262
last = now;
63-
} else {
64-
++last;
6563
}
6664
return last;
6765
}

0 commit comments

Comments
 (0)