< prev index next >

test/compiler/c1/Test6849574.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke

*** 25,41 **** /** * @test * @bug 6849574 * @summary VM crash using NonBlockingHashMap (high_scale_lib) * ! * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+VerifyBeforeGC Test */ ! import java.util.concurrent.atomic.*; ! public class Test extends Thread { public static void main(String[] args) { AtomicReferenceArray a = new AtomicReferenceArray(10000); for (int i = 0; i < 100000; i++) { a.getAndSet(9999, new Object()); if (i > 99990) System.gc(); --- 25,44 ---- /** * @test * @bug 6849574 * @summary VM crash using NonBlockingHashMap (high_scale_lib) * ! * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+VerifyBeforeGC ! * compiler.c1.Test6849574 */ ! package compiler.c1; ! import java.util.concurrent.atomic.AtomicReferenceArray; + public class Test6849574 extends Thread { + public static void main(String[] args) { AtomicReferenceArray a = new AtomicReferenceArray(10000); for (int i = 0; i < 100000; i++) { a.getAndSet(9999, new Object()); if (i > 99990) System.gc();
< prev index next >