Skip to content

Commit fce46ca

Browse files
Remove exception throw.
1 parent d77207f commit fce46ca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import java.util.List;
2828
import java.util.function.BooleanSupplier;
2929

30-
import jdk.jfr.internal.LogLevel;
3130
import org.graalvm.nativeimage.Platform;
3231
import org.graalvm.nativeimage.Platforms;
3332
import org.graalvm.nativeimage.ProcessProperties;
@@ -46,6 +45,7 @@
4645

4746
import jdk.graal.compiler.api.replacements.Fold;
4847
import jdk.jfr.internal.JVM;
48+
import jdk.jfr.internal.LogLevel;
4949
import jdk.jfr.internal.LogTag;
5050
import jdk.jfr.internal.Logger;
5151

@@ -177,9 +177,8 @@ public static void unregisterStackFilter(long stackFilterId) {
177177
@Substitute
178178
@TargetElement(onlyWith = JDK22OrLater.class)
179179
public static void setMiscellaneous(long eventTypeId, long value) {
180-
// Add logging here since JDK code obfuscates root exception message.
181180
Logger.log(LogTag.JFR_SETTING, LogLevel.WARN, "@Deprecated JFR events, and leak profiling are not yet supported.");
182-
throw VMError.unimplemented("@Deprecated JFR events, and leak profiling are not yet supported.");
181+
/* Explicitly don't throw an exception (would result in an unspecific warning). */
183182
}
184183

185184
/** See {@link JVM#getThreadId}. */

0 commit comments

Comments
 (0)