From 3ce4246078ad557730035692fab71b8ef926eb7c Mon Sep 17 00:00:00 2001 From: jovsteva Date: Wed, 4 Sep 2024 09:37:34 +0200 Subject: [PATCH] Do not include TruffleJfrFeature if PGO config is specified. --- .../src/com/oracle/svm/truffle/TruffleJFRFeature.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/TruffleJFRFeature.java b/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/TruffleJFRFeature.java index 1607b8176bc9..9bdb2dabb8eb 100644 --- a/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/TruffleJFRFeature.java +++ b/substratevm/src/com.oracle.svm.truffle/src/com/oracle/svm/truffle/TruffleJFRFeature.java @@ -66,6 +66,6 @@ public List> getRequiredFeatures() { } private static boolean isEnabled() { - return ImageSingletons.contains(TruffleFeature.class) && ImageSingletons.contains(JfrFeature.class); + return ImageSingletons.contains(TruffleFeature.class) && JfrFeature.isInConfiguration(true); } }