359 }
360 public native Object[] getCodeBlob(long addr);
361
362 private native void clearInlineCaches0(boolean preserve_static_stubs);
363 public void clearInlineCaches() {
364 clearInlineCaches0(false);
365 }
366 public void clearInlineCaches(boolean preserve_static_stubs) {
367 clearInlineCaches0(preserve_static_stubs);
368 }
369
370 // Intered strings
371 public native boolean isInStringTable(String str);
372
373 // Memory
374 public native void readReservedMemory();
375 public native long allocateMetaspace(ClassLoader classLoader, long size);
376 public native void freeMetaspace(ClassLoader classLoader, long addr, long size);
377 public native long incMetaspaceCapacityUntilGC(long increment);
378 public native long metaspaceCapacityUntilGC();
379
380 // Force Young GC
381 public native void youngGC();
382
383 // Force Full GC
384 public native void fullGC();
385
386 // Method tries to start concurrent mark cycle.
387 // It returns false if CM Thread is always in concurrent cycle.
388 public native boolean g1StartConcMarkCycle();
389
390 // Tests on ReservedSpace/VirtualSpace classes
391 public native int stressVirtualSpaceResize(long reservedSpaceSize, long magnitude, long iterations);
392 public native void runMemoryUnitTests();
393 public native void readFromNoaccessArea();
394 public native long getThreadStackSize();
395 public native long getThreadRemainingStackSize();
396
397 // CPU features
398 public native String getCPUFeatures();
|
359 }
360 public native Object[] getCodeBlob(long addr);
361
362 private native void clearInlineCaches0(boolean preserve_static_stubs);
363 public void clearInlineCaches() {
364 clearInlineCaches0(false);
365 }
366 public void clearInlineCaches(boolean preserve_static_stubs) {
367 clearInlineCaches0(preserve_static_stubs);
368 }
369
370 // Intered strings
371 public native boolean isInStringTable(String str);
372
373 // Memory
374 public native void readReservedMemory();
375 public native long allocateMetaspace(ClassLoader classLoader, long size);
376 public native void freeMetaspace(ClassLoader classLoader, long addr, long size);
377 public native long incMetaspaceCapacityUntilGC(long increment);
378 public native long metaspaceCapacityUntilGC();
379 public native boolean metaspaceShouldConcurrentCollect();
380
381 // Force Young GC
382 public native void youngGC();
383
384 // Force Full GC
385 public native void fullGC();
386
387 // Method tries to start concurrent mark cycle.
388 // It returns false if CM Thread is always in concurrent cycle.
389 public native boolean g1StartConcMarkCycle();
390
391 // Tests on ReservedSpace/VirtualSpace classes
392 public native int stressVirtualSpaceResize(long reservedSpaceSize, long magnitude, long iterations);
393 public native void runMemoryUnitTests();
394 public native void readFromNoaccessArea();
395 public native long getThreadStackSize();
396 public native long getThreadRemainingStackSize();
397
398 // CPU features
399 public native String getCPUFeatures();
|