8154096: Extend WhiteBox API with methods which retrieve from VM information about available GC

Reviewed-by: kbarrett, iignatyev
This commit is contained in:
Dmitry Fazunenko 2016-05-30 19:39:09 +04:00
parent efa657c1e9
commit f4fdc1991e
2 changed files with 110 additions and 0 deletions

View file

@ -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();