Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@ public static void setMethodSamplingPeriod(long type, long intervalMillis) {
SubstrateJVM.get().setMethodSamplingInterval(type, intervalMillis);
}

/** See {@code JVM#setCPUThrottle}. */
@Substitute
public static void setCPUThrottle(double rate, boolean autoAdapt) {
// JFR CPUTimeSample is not supported.
}

/** See {@link JVM#setOutput}. */
@Substitute
public static void setOutput(String file) {
Expand Down Expand Up @@ -652,6 +658,24 @@ public static boolean isProduct() {
*/
return true;
}

/** See {@link JVM#setMethodTraceFilters}. */
@Substitute
public static long[] setMethodTraceFilters(
String[] classes,
String[] methods,
String[] annotations,
int[] modification) {
// JFR method tracing is not supported. No filters can be used so return null.
return null;
}

/** See {@link JVM#drainStaleMethodTracerIds}. */
@Substitute
public static long[] drainStaleMethodTracerIds() {
// JFR method tracing is not supported. Return no stale IDs.
return null;
}
}

class Target_jdk_jfr_internal_JVM_Util {
Expand Down