< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/HotSpotGraalManagementTest.java
Print this page
rev 52509 : [mq]: graal2
*** 71,82 ****
private static final boolean DEBUG = Boolean.getBoolean(HotSpotGraalManagementTest.class.getSimpleName() + ".debug");
public HotSpotGraalManagementTest() {
try {
MBeanServerFactory.findMBeanServer(null);
! } catch (NoClassDefFoundError e) {
throw new AssumptionViolatedException("Management classes/module(s) not available: " + e);
}
}
@Test
--- 71,84 ----
private static final boolean DEBUG = Boolean.getBoolean(HotSpotGraalManagementTest.class.getSimpleName() + ".debug");
public HotSpotGraalManagementTest() {
try {
+ /* Trigger loading of the management library using the bootstrap class loader. */
+ ManagementFactory.getThreadMXBean();
MBeanServerFactory.findMBeanServer(null);
! } catch (UnsatisfiedLinkError | NoClassDefFoundError e) {
throw new AssumptionViolatedException("Management classes/module(s) not available: " + e);
}
}
@Test
< prev index next >