Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omit VirtualThreadSchedulerMXBean in builds for valuetypes #20377

Merged
merged 1 commit into from
Oct 17, 2024
Merged
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 @@ -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
Expand Down Expand Up @@ -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

Expand Down