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
*** old/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java Fri May 31 08:53:44 2019
--- new/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java Fri May 31 08:53:43 2019
*** 795,804 ****
--- 795,824 ----
public long[] collectCounters() {
return compilerToVm.collectCounters();
}
/**
+ * @return the current number of per thread counters. May be set through
+ * {@code -XX:JVMCICompilerSize=} command line option or the
+ * {@link #setCountersSize(int)} call.
+ */
+ public int getCountersSize() {
+ return compilerToVm.getCountersSize();
+ }
+
+ /**
+ * Attempt to enlarge the number of per thread counters available. Requires a safepoint so
+ * resizing should be rare to avoid performance effects.
+ *
+ * @param newSize
+ * @return false if the resizing failed
+ */
+ public boolean setCountersSize(int newSize) {
+ return compilerToVm.setCountersSize(newSize);
+ }
+
+ /**
* The offset from the origin of an array to the first element.
*
* @return the offset in bytes
*/
public int getArrayBaseOffset(JavaKind kind) {
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