test/lib/sun/hotspot/WhiteBox.java
changeset 37954 74d146e5be3b
parent 37025 e0533c567b27
child 37958 04a779e51d6e
--- a/test/lib/sun/hotspot/WhiteBox.java	Tue Apr 19 13:19:41 2016 +0200
+++ b/test/lib/sun/hotspot/WhiteBox.java	Wed Apr 20 19:16:32 2016 +0300
@@ -192,6 +192,16 @@
   public native long psVirtualSpaceAlignment();
   public native long psHeapGenerationAlignment();
 
+  /**
+   * Enumerates old regions with liveness less than specified and produces some statistics
+   * @param liveness percent of region's liveness (live_objects / total_region_size * 100).
+   * @return long[3] array where long[0] - total count of old regions
+   *                             long[1] - total memory of old regions
+   *                             long[2] - lowest estimation of total memory of old regions to be freed (non-full
+   *                             regions are not included)
+   */
+  public native long[] g1GetMixedGCInfo(int liveness);
+
   // NMT
   public native long NMTMalloc(long size);
   public native void NMTFree(long mem);