Skip to content

Commit b49fa84

Browse files
[GR-65899] JFR substitutions for JDK 25+26.
PullRequest: graal/21095
2 parents aefacfb + 1b67e38 commit b49fa84

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

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

299+
/** See {@code JVM#setCPUThrottle}. */
300+
@Substitute
301+
public static void setCPUThrottle(double rate, boolean autoAdapt) {
302+
// JFR CPUTimeSample is not supported.
303+
}
304+
299305
/** See {@link JVM#setOutput}. */
300306
@Substitute
301307
public static void setOutput(String file) {
@@ -652,6 +658,20 @@ public static boolean isProduct() {
652658
*/
653659
return true;
654660
}
661+
662+
/** See {@link JVM#setMethodTraceFilters}. */
663+
@Substitute
664+
public static long[] setMethodTraceFilters(String[] classes, String[] methods, String[] annotations, int[] modification) {
665+
// JFR method tracing is not supported. No filters can be used so return null.
666+
return null;
667+
}
668+
669+
/** See {@link JVM#drainStaleMethodTracerIds}. */
670+
@Substitute
671+
public static long[] drainStaleMethodTracerIds() {
672+
// JFR method tracing is not supported. Return no stale IDs.
673+
return null;
674+
}
655675
}
656676

657677
class Target_jdk_jfr_internal_JVM_Util {

0 commit comments

Comments
 (0)