# HG changeset patch # User shade # Date 1369756458 -14400 # Node ID c08b5f4bf60f82ea56af223948ac7964283573a5 # Parent 4bb8ccdc32a96b8d47fd354f779c53f111e02b65 8015493: runtime/contended/OopMaps.java fails with OutOfMemory Summary: limit the memory footprint to dodge OutOfMemory errors. Reviewed-by: dcubed, ctornqvi, iignatyev diff -r 4bb8ccdc32a9 -r c08b5f4bf60f hotspot/test/runtime/contended/OopMaps.java --- a/hotspot/test/runtime/contended/OopMaps.java Tue May 28 15:08:57 2013 +0200 +++ b/hotspot/test/runtime/contended/OopMaps.java Tue May 28 19:54:18 2013 +0400 @@ -41,12 +41,15 @@ /* * @test * @bug 8015270 + * @bug 8015493 * @summary \@Contended: fix multiple issues in the layout code * - * @run main/othervm -XX:-RestrictContended OopMaps + * @run main/othervm -XX:-RestrictContended -XX:ContendedPaddingWidth=128 -Xmx128m OopMaps */ public class OopMaps { + public static final int COUNT = 10000; + public static void main(String[] args) throws Exception { Object o01 = new Object(); Object o02 = new Object(); @@ -63,7 +66,6 @@ Object o13 = new Object(); Object o14 = new Object(); - final int COUNT = 100000; R1[] rs = new R1[COUNT]; for (int i = 0; i < COUNT; i++) {