285 }
286 private native int getMethodCompilationLevel0(Executable method, boolean isOsr);
287 public int getMethodCompilationLevel(Executable method, boolean isOsr) {
288 Objects.requireNonNull(method);
289 return getMethodCompilationLevel0(method, isOsr);
290 }
291 private native boolean testSetDontInlineMethod0(Executable method, boolean value);
292 public boolean testSetDontInlineMethod(Executable method, boolean value) {
293 Objects.requireNonNull(method);
294 return testSetDontInlineMethod0(method, value);
295 }
296 public int getCompileQueuesSize() {
297 return getCompileQueueSize(-1 /*any*/);
298 }
299 public native int getCompileQueueSize(int compLevel);
300 private native boolean testSetForceInlineMethod0(Executable method, boolean value);
301 public boolean testSetForceInlineMethod(Executable method, boolean value) {
302 Objects.requireNonNull(method);
303 return testSetForceInlineMethod0(method, value);
304 }
305 public boolean enqueueMethodForCompilation(Executable method, int compLevel) {
306 return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/);
307 }
308 private native boolean enqueueMethodForCompilation0(Executable method, int compLevel, int entry_bci);
309 public boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci) {
310 Objects.requireNonNull(method);
311 return enqueueMethodForCompilation0(method, compLevel, entry_bci);
312 }
313 private native void clearMethodState0(Executable method);
314 public void clearMethodState(Executable method) {
315 Objects.requireNonNull(method);
316 clearMethodState0(method);
317 }
318 public native void lockCompilation();
319 public native void unlockCompilation();
320 private native int getMethodEntryBci0(Executable method);
321 public int getMethodEntryBci(Executable method) {
322 Objects.requireNonNull(method);
323 return getMethodEntryBci0(method);
324 }
325 private native Object[] getNMethod0(Executable method, boolean isOsr);
326 public Object[] getNMethod(Executable method, boolean isOsr) {
327 Objects.requireNonNull(method);
328 return getNMethod0(method, isOsr);
329 }
330 public native long allocateCodeBlob(int size, int type);
331 public long allocateCodeBlob(long size, int type) {
|
285 }
286 private native int getMethodCompilationLevel0(Executable method, boolean isOsr);
287 public int getMethodCompilationLevel(Executable method, boolean isOsr) {
288 Objects.requireNonNull(method);
289 return getMethodCompilationLevel0(method, isOsr);
290 }
291 private native boolean testSetDontInlineMethod0(Executable method, boolean value);
292 public boolean testSetDontInlineMethod(Executable method, boolean value) {
293 Objects.requireNonNull(method);
294 return testSetDontInlineMethod0(method, value);
295 }
296 public int getCompileQueuesSize() {
297 return getCompileQueueSize(-1 /*any*/);
298 }
299 public native int getCompileQueueSize(int compLevel);
300 private native boolean testSetForceInlineMethod0(Executable method, boolean value);
301 public boolean testSetForceInlineMethod(Executable method, boolean value) {
302 Objects.requireNonNull(method);
303 return testSetForceInlineMethod0(method, value);
304 }
305 private native boolean enqueueMethodForCompilation0(Executable method, int compLevel, int entry_bci, boolean block);
306 public boolean compileMethod(Executable method, int compLevel) {
307 return compileMethod(method, compLevel, -1 /*InvocationEntryBci*/);
308 }
309 public boolean compileMethod(Executable method, int compLevel, int entry_bci) {
310 Objects.requireNonNull(method);
311 return enqueueMethodForCompilation0(method, compLevel, entry_bci, true);
312 }
313 public boolean enqueueMethodForCompilation(Executable method, int compLevel) {
314 return enqueueMethodForCompilation(method, compLevel, -1 /*InvocationEntryBci*/);
315 }
316 public boolean enqueueMethodForCompilation(Executable method, int compLevel, int entry_bci) {
317 Objects.requireNonNull(method);
318 return enqueueMethodForCompilation0(method, compLevel, entry_bci, false);
319 }
320 private native void clearMethodState0(Executable method);
321 public void clearMethodState(Executable method) {
322 Objects.requireNonNull(method);
323 clearMethodState0(method);
324 }
325 public native void lockCompilation();
326 public native void unlockCompilation();
327 private native int getMethodEntryBci0(Executable method);
328 public int getMethodEntryBci(Executable method) {
329 Objects.requireNonNull(method);
330 return getMethodEntryBci0(method);
331 }
332 private native Object[] getNMethod0(Executable method, boolean isOsr);
333 public Object[] getNMethod(Executable method, boolean isOsr) {
334 Objects.requireNonNull(method);
335 return getNMethod0(method, isOsr);
336 }
337 public native long allocateCodeBlob(int size, int type);
338 public long allocateCodeBlob(long size, int type) {
|