< prev index next >

test/hotspot/jtreg/gc/shenandoah/TestHeapUncommit.java

Print this page
@@ -1,7 +1,8 @@
  /*
   * Copyright (c) 2017, 2018, Red Hat, Inc. All rights reserved.
+  * Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

@@ -82,10 +83,32 @@
   *      -XX:+UseShenandoahGC
   *      -XX:-UseTLAB -XX:+ShenandoahVerify
   *      TestHeapUncommit
   */
  
+ /*
+  * @test id=generational
+  * @summary Acceptance tests: collector can withstand allocation
+  * @key randomness
+  * @requires vm.gc.Shenandoah
+  * @library /test/lib
+  *
+  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
+  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahGCMode=generational
+  *      -XX:+ShenandoahVerify
+  *      TestHeapUncommit
+  *
+  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
+  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahGCMode=generational
+  *      TestHeapUncommit
+  *
+  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
+  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahGCMode=generational
+  *      -XX:-UseTLAB -XX:+ShenandoahVerify
+  *      TestHeapUncommit
+  */
+ 
  /*
   * @test id=iu
   * @summary Acceptance tests: collector can withstand allocation
   * @key randomness
   * @requires vm.gc.Shenandoah
< prev index next >