From 4978707a1025e91f685f8742a099a5738ce35080 Mon Sep 17 00:00:00 2001 From: "Keith W. Campbell" Date: Thu, 17 Oct 2024 13:31:41 -0400 Subject: [PATCH] Omit VirtualThreadSchedulerMXBean in builds for valuetypes Signed-off-by: Keith W. Campbell --- .../lang/management/internal/PlatformMBeanProvider.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jcl/src/jdk.management/share/classes/com/ibm/lang/management/internal/PlatformMBeanProvider.java b/jcl/src/jdk.management/share/classes/com/ibm/lang/management/internal/PlatformMBeanProvider.java index 53002fd2578..e878fafbedf 100644 --- a/jcl/src/jdk.management/share/classes/com/ibm/lang/management/internal/PlatformMBeanProvider.java +++ b/jcl/src/jdk.management/share/classes/com/ibm/lang/management/internal/PlatformMBeanProvider.java @@ -40,10 +40,10 @@ import com.sun.management.HotSpotDiagnosticMXBean; /*[ENDIF] JAVA_SPEC_VERSION >= 21 */ -/*[IF JAVA_SPEC_VERSION >= 24]*/ +/*[IF (JAVA_SPEC_VERSION >= 24) & !INLINE-TYPES]*/ import com.sun.management.internal.VirtualThreadSchedulerImpls; import jdk.management.VirtualThreadSchedulerMXBean; -/*[ENDIF] JAVA_SPEC_VERSION >= 24 */ +/*[ENDIF] (JAVA_SPEC_VERSION >= 24) & !INLINE-TYPES */ /** * This class implements the service-provider interface to make OpenJ9-specific @@ -123,11 +123,11 @@ public final class PlatformMBeanProvider extends sun.management.spi.PlatformMBea .register(allComponents); /*[ENDIF] JAVA_SPEC_VERSION >= 21 */ - /*[IF JAVA_SPEC_VERSION >= 24]*/ + /*[IF (JAVA_SPEC_VERSION >= 24) & !INLINE-TYPES]*/ ComponentBuilder.create("jdk.management:type=VirtualThreadScheduler", VirtualThreadSchedulerImpls.create()) //$NON-NLS-1$ .addInterface(VirtualThreadSchedulerMXBean.class) .register(allComponents); - /*[ENDIF] JAVA_SPEC_VERSION >= 24 */ + /*[ENDIF] (JAVA_SPEC_VERSION >= 24) & !INLINE-TYPES */ // register beans with zero or more instances