mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 08:34:30 +02:00
8154096: Extend WhiteBox API with methods which retrieve from VM information about available GC
Reviewed-by: kbarrett, iignatyev
This commit is contained in:
parent
efa657c1e9
commit
f4fdc1991e
2 changed files with 110 additions and 0 deletions
|
@ -377,6 +377,12 @@ public class WhiteBox {
|
|||
public native long incMetaspaceCapacityUntilGC(long increment);
|
||||
public native long metaspaceCapacityUntilGC();
|
||||
|
||||
// Don't use these methods directly
|
||||
// Use sun.hotspot.gc.GC class instead.
|
||||
public native int currentGC();
|
||||
public native int allSupportedGC();
|
||||
public native boolean gcSelectedByErgo();
|
||||
|
||||
// Force Young GC
|
||||
public native void youngGC();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue