< prev index next >

test/gc/g1/humongousObjects/TestHumongousThreshold.java

Print this page




  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 package gc.g1.humongousObjects;
  26 
  27 import gc.testlibrary.Helpers;
  28 import jdk.test.lib.Asserts;
  29 import sun.hotspot.WhiteBox;
  30 
  31 /**
  32  * @test TestHumongousThreshold
  33  * @summary Checks that objects larger than half a region are allocated as humongous
  34  * @requires vm.gc.G1
  35  * @library /testlibrary /test/lib /
  36  * @modules java.base/jdk.internal.misc
  37  * @modules java.management
  38  * @build sun.hotspot.WhiteBox
  39  *        gc.testlibrary.Helpers
  40  *        gc.g1.humongousObjects.TestHumongousThreshold
  41  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  42  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  43  *
  44  * @run main/othervm -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
  45  * -XX:G1HeapRegionSize=1M
  46  * gc.g1.humongousObjects.TestHumongousThreshold
  47  *
  48  * @run main/othervm -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
  49  * -XX:G1HeapRegionSize=2M
  50  * gc.g1.humongousObjects.TestHumongousThreshold
  51  *
  52  * @run main/othervm -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
  53  * -XX:G1HeapRegionSize=4M
  54  * gc.g1.humongousObjects.TestHumongousThreshold
  55  *
  56  * @run main/othervm -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
  57  * -XX:G1HeapRegionSize=8M
  58  * gc.g1.humongousObjects.TestHumongousThreshold
  59  *
  60  * @run main/othervm -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.




  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 package gc.g1.humongousObjects;
  26 
  27 import gc.testlibrary.Helpers;
  28 import jdk.test.lib.Asserts;
  29 import sun.hotspot.WhiteBox;
  30 
  31 /**
  32  * @test TestHumongousThreshold
  33  * @summary Checks that objects larger than half a region are allocated as humongous
  34  * @requires vm.gc.G1
  35  * @library /test/lib /
  36  * @modules java.base/jdk.internal.misc
  37  * @modules java.management
  38  * @build sun.hotspot.WhiteBox


  39  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  40  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  41  *
  42  * @run main/othervm -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
  43  * -XX:G1HeapRegionSize=1M
  44  * gc.g1.humongousObjects.TestHumongousThreshold
  45  *
  46  * @run main/othervm -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
  47  * -XX:G1HeapRegionSize=2M
  48  * gc.g1.humongousObjects.TestHumongousThreshold
  49  *
  50  * @run main/othervm -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
  51  * -XX:G1HeapRegionSize=4M
  52  * gc.g1.humongousObjects.TestHumongousThreshold
  53  *
  54  * @run main/othervm -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
  55  * -XX:G1HeapRegionSize=8M
  56  * gc.g1.humongousObjects.TestHumongousThreshold
  57  *
  58  * @run main/othervm -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.


< prev index next >