equal
deleted
inserted
replaced
34 /* |
34 /* |
35 * @test |
35 * @test |
36 * @author Doug Lea |
36 * @author Doug Lea |
37 * @bug 8004138 |
37 * @bug 8004138 |
38 * @summary Check if ForkJoinPool table leaks thrown exceptions. |
38 * @summary Check if ForkJoinPool table leaks thrown exceptions. |
39 * @run main/othervm -Xmx32m FJExceptionTableLeak |
39 * @run main/othervm/timeout=1200 -Xmx32m FJExceptionTableLeak |
40 */ |
40 */ |
41 import java.util.concurrent.*; |
41 import java.util.concurrent.*; |
42 |
42 |
43 public class FJExceptionTableLeak { |
43 public class FJExceptionTableLeak { |
|
44 // TODO: make this test use less time! |
44 |
45 |
45 // Run with TASKS_PER_STEP * 40 < Xmx < STEPS * TASKS_PER_STEP * 40 |
46 // Run with TASKS_PER_STEP * 40 < Xmx < STEPS * TASKS_PER_STEP * 40 |
46 // These work for Xmx32m: |
47 // These work for Xmx32m: |
47 static final int STEPS = 2000; |
48 static final int STEPS = 2000; |
48 static final int TASKS_PER_STEP = 1000; |
49 static final int TASKS_PER_STEP = 1000; |