< prev index next >
hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java
Print this page
rev 13447 : Exposing JVMCI MBean as a platform MBean
@@ -547,10 +547,20 @@
}
};
}
/**
+ * Provides compiler specific platform MBeans. These MBeans will be automatically
+ * exposed once the management system gets initialized.
+ *
+ * @return map from MBean names to their instances
+ */
+ public Map<String, Object> mbeans() {
+ return hsCompilerFactory == null ? Collections.emptyMap() : hsCompilerFactory.mbeans();
+ }
+
+ /**
* Collects the current values of all JVMCI benchmark counters, summed up over all threads.
*/
public long[] collectCounters() {
return compilerToVm.collectCounters();
}
< prev index next >