jdk/test/java/util/concurrent/forkjoin/FJExceptionTableLeak.java
changeset 32988 da3715f8eec3
parent 20882 5d8c39217c1b
child 34347 4a17f9e90a0f
equal deleted inserted replaced
32987:e5e5ab01398e 32988:da3715f8eec3
    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;