< prev index next >
test/gc/g1/TestParallelAlwaysPreTouch.java
Print this page
rev 12321 : imported patch 8169703-crash-with-alwayspretouch
rev 12322 : 8169703: G1 crashes with guarantee(pretouch_gang != NULL) failed: No pretouch gang specified
Summary: Allow use of AlwaysPreTouch without passing a WorkGang.
Reviewed-by: kbarrett, dfazunen, ddmitriev
@@ -20,22 +20,22 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
- * @test TestParallelAlwaysPreTouch
+ * @test
* @bug 8169703
* @summary Regression test to ensure AlwaysPreTouch with multiple threads works at mutator time.
* Allocates a few humongous objects that will be allocated by expanding the heap, causing concurrent parallel
* pre-touch.
* @requires vm.gc.G1
* @key gc
* @key regression
- * @run main -XX:+UseG1GC -Xms10M -Xmx100m -XX:G1HeapRegionSize=1M -XX:+AlwaysPreTouch -XX:PreTouchParallelChunkSize=512k -Xlog:gc+ergo+heap=debug,gc+heap=debug,gc=debug TestAlwaysPreTouch
+ * @run main/othervm -XX:+UseG1GC -Xms10M -Xmx100m -XX:G1HeapRegionSize=1M -XX:+AlwaysPreTouch -XX:PreTouchParallelChunkSize=512k -Xlog:gc+ergo+heap=debug,gc+heap=debug,gc=debug TestParallelAlwaysPreTouch
*/
-public class Test2GbHeap {
+public class TestParallelAlwaysPreTouch {
public static void main(String[] args) throws Exception {
final int M = 1024 * 1024; // Something guaranteed to be larger than a region to be counted as humongous.
for (int i = 0; i < 10; i++) {
Object[] obj = new Object[M];
< prev index next >