OSDN Git Service

Reduce allocations in ParallelGC test.
authorMathieu Chartier <mathieuc@google.com>
Thu, 24 Jul 2014 00:25:41 +0000 (17:25 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 24 Jul 2014 00:25:41 +0000 (17:25 -0700)
Fixes GC stress test mode.

Bug: 16406852
Change-Id: I86c8fd7516c3f41075bca00c7d5b4dab2bb7b1d4

test/114-ParallelGC/src/Main.java

index 01a3023..fb110bd 100644 (file)
@@ -39,7 +39,7 @@ public class Main implements Runnable {
 
     public void run() {
         List l = new ArrayList();
-        for (int i = 0; i < 1000; i++) {
+        for (int i = 0; i < 500; i++) {
             l.add(new ArrayList(i));
         }
     }