Skip to content

Commit c3573b7

Browse files
committed
Adapt JDK-8358619: Fix interval recomputation in CPU Time Profiler.
1 parent d3ee7ba commit c3573b7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jfr/Target_jdk_jfr_internal_JVM.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,15 @@ public static void setMethodSamplingPeriod(long type, long intervalMillis) {
296296
SubstrateJVM.get().setMethodSamplingInterval(type, intervalMillis);
297297
}
298298

299-
/** See {@code JVM#setCPUThrottle}. */
299+
/** See {@code JVM#setCPURate}. */
300300
@Substitute
301-
public static void setCPUThrottle(double rate, boolean autoAdapt) {
301+
public static void setCPURate(double rate) {
302+
// JFR CPUTimeSample is not supported.
303+
}
304+
305+
/** See {@code JVM#setCPUPeriod}. */
306+
@Substitute
307+
public static void setCPUPeriod(long periodNanos) {
302308
// JFR CPUTimeSample is not supported.
303309
}
304310

0 commit comments

Comments
 (0)