From 9f566fa5041bad3463a81b0f84a77829c7ae9dfe Mon Sep 17 00:00:00 2001 From: tajila Date: Mon, 18 Nov 2024 20:05:47 -0500 Subject: [PATCH] Disable JFR JCL APIs Disable JFR JCL APIs until JFR natives are implemented. Related to: https://github.com/eclipse-openj9/openj9/issues/20607 Signed-off-by: tajila --- jcl/src/java.base/share/classes/java/lang/System.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jcl/src/java.base/share/classes/java/lang/System.java b/jcl/src/java.base/share/classes/java/lang/System.java index 40ed484a719..411b7efa2f8 100644 --- a/jcl/src/java.base/share/classes/java/lang/System.java +++ b/jcl/src/java.base/share/classes/java/lang/System.java @@ -736,7 +736,10 @@ private static void ensureProperties(boolean isInitialization) { /*[ENDIF] CRIU_SUPPORT */ /*[IF JFR_SUPPORT]*/ + /* Enables openj9 JFR tests. */ initializedProperties.put("org.eclipse.openj9.jfr.isJFREnabled", "true"); //$NON-NLS-1$ //$NON-NLS-2$ + /* TODO disable JFR JCL APIs until JFR natives are implemented. */ + initializedProperties.put("jfr.unsupported.vm", "true"); //$NON-NLS-1$ //$NON-NLS-2$ /*[ENDIF] JFR_SUPPORT */ String[] list = getPropertyList();