src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java
Index
Unified diffs
Context diffs
Sdiffs
Frames
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java
src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java
Print this page
*** 33,42 ****
--- 33,43 ----
import java.util.Map;
import java.util.Objects;
import java.util.ServiceLoader;
import java.util.TreeMap;
+ import javax.management.MBeanInfo;
import jdk.internal.misc.VM;
import jdk.vm.ci.code.Architecture;
import jdk.vm.ci.code.CompilationRequestResult;
import jdk.vm.ci.code.CompiledCode;
import jdk.vm.ci.code.InstalledCode;
*** 546,555 ****
--- 547,576 ----
compilerToVm.flushDebugOutput();
}
};
}
+ /** Name of the {@link MBeanInfo MBean} representing the internals
+ * of the current JVMCI runtime.
+ *
+ * @return name of the bean or <code>null</code> if no such bean
+ * is provided by the runtime
+ */
+ public String mbeanName() {
+ return hsCompilerFactory == null ? null : hsCompilerFactory.mbeanName();
+ }
+
+ /** Instance of the {@link MBeanInfo MBean} representing the internals
+ * of the current JVMCI runtime.
+ *
+ * @return instance of the bean or <code>null</code> if no such bean
+ * is provided by the runtime
+ */
+ public Object mbean() {
+ return hsCompilerFactory == null ? null : hsCompilerFactory.mbean();
+ }
+
/**
* Collects the current values of all JVMCI benchmark counters, summed up over all threads.
*/
public long[] collectCounters() {
return compilerToVm.collectCounters();
src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java
Index
Unified diffs
Context diffs
Sdiffs
Frames
Patch
New
Old
Previous File
Next File