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 import java.util.concurrent.TimeoutException;
25 import sun.hotspot.WhiteBox;
26
27 /*
28 * @test TestStressRSetCoarsening.java
29 * @key stress
30 * @bug 8146984 8147087
31 * @requires vm.gc.G1
32 * @requires os.maxMemory > 3G
33 * @requires vm.opt.MaxGCPauseMillis == "null"
34 *
35 * @summary Stress G1 Remembered Set by creating a lot of cross region links
36 * @modules java.base/jdk.internal.misc
37 * @library /testlibrary /test/lib
38 * @build sun.hotspot.WhiteBox
39 * @run main ClassFileInstaller sun.hotspot.WhiteBox
40 * sun.hotspot.WhiteBox$WhiteBoxPermission
41 * @run main/othervm/timeout=300
42 * -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
43 * -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
44 * -Xmx500m -XX:G1HeapRegionSize=1m TestStressRSetCoarsening 1 0 300
45 * @run main/othervm/timeout=300
46 * -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
47 * -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
48 * -Xmx500m -XX:G1HeapRegionSize=8m TestStressRSetCoarsening 1 10 300
49 * @run main/othervm/timeout=300
50 * -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
51 * -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
52 * -Xmx500m -XX:G1HeapRegionSize=32m TestStressRSetCoarsening 42 10 300
53 * @run main/othervm/timeout=300
54 * -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
55 * -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
56 * -Xmx500m -XX:G1HeapRegionSize=1m TestStressRSetCoarsening 2 0 300
57 * @run main/othervm/timeout=1800
|
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 import java.util.concurrent.TimeoutException;
25 import sun.hotspot.WhiteBox;
26
27 /*
28 * @test TestStressRSetCoarsening.java
29 * @key stress
30 * @bug 8146984 8147087
31 * @requires vm.gc.G1
32 * @requires os.maxMemory > 3G
33 * @requires vm.opt.MaxGCPauseMillis == "null"
34 *
35 * @summary Stress G1 Remembered Set by creating a lot of cross region links
36 * @modules java.base/jdk.internal.misc
37 * @library /test/lib
38 * @build sun.hotspot.WhiteBox
39 * @run main ClassFileInstaller sun.hotspot.WhiteBox
40 * sun.hotspot.WhiteBox$WhiteBoxPermission
41 * @run main/othervm/timeout=300
42 * -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
43 * -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
44 * -Xmx500m -XX:G1HeapRegionSize=1m TestStressRSetCoarsening 1 0 300
45 * @run main/othervm/timeout=300
46 * -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
47 * -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
48 * -Xmx500m -XX:G1HeapRegionSize=8m TestStressRSetCoarsening 1 10 300
49 * @run main/othervm/timeout=300
50 * -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
51 * -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
52 * -Xmx500m -XX:G1HeapRegionSize=32m TestStressRSetCoarsening 42 10 300
53 * @run main/othervm/timeout=300
54 * -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
55 * -XX:+UseG1GC -Xlog:gc* -XX:MaxGCPauseMillis=1000
56 * -Xmx500m -XX:G1HeapRegionSize=1m TestStressRSetCoarsening 2 0 300
57 * @run main/othervm/timeout=1800
|