132 return getMethodCompilationLevel(method, false /*not ost*/);
133 }
134 public native int getMethodCompilationLevel(Executable method, boolean isOsr);
135 public native boolean testSetDontInlineMethod(Executable method, boolean value);
136 public int getCompileQueuesSize() {
137 return getCompileQueueSize(-1 /*any*/);
138 }
139 public native int getCompileQueueSize(int compLevel);
140 public native boolean testSetForceInlineMethod(Executable method, boolean value);
141 public boolean enqueueMethodForCompilation(Executable method, int compLevel) {
142 return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/);
143 }
144 public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci);
145 public native void clearMethodState(Executable method);
146 public native void lockCompilation();
147 public native void unlockCompilation();
148 public native int getMethodEntryBci(Executable method);
149 public native Object[] getNMethod(Executable method, boolean isOsr);
150 public native long allocateCodeBlob(int size, int type);
151 public native void freeCodeBlob(long addr);
152 public native void forceNMethodSweep();
153 public native Object[] getCodeHeapEntries(int type);
154
155 // Intered strings
156 public native boolean isInStringTable(String str);
157
158 // Memory
159 public native void readReservedMemory();
160 public native long allocateMetaspace(ClassLoader classLoader, long size);
161 public native void freeMetaspace(ClassLoader classLoader, long addr, long size);
162 public native long incMetaspaceCapacityUntilGC(long increment);
163 public native long metaspaceCapacityUntilGC();
164
165 // force Young GC
166 public native void youngGC();
167
168 // force Full GC
169 public native void fullGC();
170
171 // Tests on ReservedSpace/VirtualSpace classes
172 public native int stressVirtualSpaceResize(long reservedSpaceSize, long magnitude, long iterations);
|
132 return getMethodCompilationLevel(method, false /*not ost*/);
133 }
134 public native int getMethodCompilationLevel(Executable method, boolean isOsr);
135 public native boolean testSetDontInlineMethod(Executable method, boolean value);
136 public int getCompileQueuesSize() {
137 return getCompileQueueSize(-1 /*any*/);
138 }
139 public native int getCompileQueueSize(int compLevel);
140 public native boolean testSetForceInlineMethod(Executable method, boolean value);
141 public boolean enqueueMethodForCompilation(Executable method, int compLevel) {
142 return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/);
143 }
144 public native boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci);
145 public native void clearMethodState(Executable method);
146 public native void lockCompilation();
147 public native void unlockCompilation();
148 public native int getMethodEntryBci(Executable method);
149 public native Object[] getNMethod(Executable method, boolean isOsr);
150 public native long allocateCodeBlob(int size, int type);
151 public native void freeCodeBlob(long addr);
152 public void forceNMethodSweep() {
153 try {
154 forceNMethodSweep0().join();
155 } catch (InterruptedException e) {
156 Thread.currentThread().interrupt();
157 }
158 }
159 public native Thread forceNMethodSweep0();
160 public native Object[] getCodeHeapEntries(int type);
161
162 // Intered strings
163 public native boolean isInStringTable(String str);
164
165 // Memory
166 public native void readReservedMemory();
167 public native long allocateMetaspace(ClassLoader classLoader, long size);
168 public native void freeMetaspace(ClassLoader classLoader, long addr, long size);
169 public native long incMetaspaceCapacityUntilGC(long increment);
170 public native long metaspaceCapacityUntilGC();
171
172 // force Young GC
173 public native void youngGC();
174
175 // force Full GC
176 public native void fullGC();
177
178 // Tests on ReservedSpace/VirtualSpace classes
179 public native int stressVirtualSpaceResize(long reservedSpaceSize, long magnitude, long iterations);
|