9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 6450200
27 * @summary Test proper handling of pool state changes
28 * @library /test/lib
29 * @run main/othervm ConfigChanges
30 * @key randomness
31 * @author Martin Buchholz
32 */
33
34 import static java.util.concurrent.TimeUnit.MILLISECONDS;
35 import static java.util.concurrent.TimeUnit.MINUTES;
36 import static java.util.concurrent.TimeUnit.NANOSECONDS;
37
38 import java.security.Permission;
39 import java.util.Random;
40 import java.util.concurrent.ArrayBlockingQueue;
41 import java.util.concurrent.CyclicBarrier;
42 import java.util.concurrent.ExecutorService;
43 import java.util.concurrent.RejectedExecutionException;
44 import java.util.concurrent.ThreadFactory;
45 import java.util.concurrent.ThreadPoolExecutor;
46 import java.util.function.Supplier;
47 import jdk.test.lib.RandomFactory;
48
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 6450200
27 * @summary Test proper handling of pool state changes
28 * @library /test/lib
29 * @build jdk.test.lib.RandomFactory
30 * @run main/othervm ConfigChanges
31 * @key randomness
32 * @author Martin Buchholz
33 */
34
35 import static java.util.concurrent.TimeUnit.MILLISECONDS;
36 import static java.util.concurrent.TimeUnit.MINUTES;
37 import static java.util.concurrent.TimeUnit.NANOSECONDS;
38
39 import java.security.Permission;
40 import java.util.Random;
41 import java.util.concurrent.ArrayBlockingQueue;
42 import java.util.concurrent.CyclicBarrier;
43 import java.util.concurrent.ExecutorService;
44 import java.util.concurrent.RejectedExecutionException;
45 import java.util.concurrent.ThreadFactory;
46 import java.util.concurrent.ThreadPoolExecutor;
47 import java.util.function.Supplier;
48 import jdk.test.lib.RandomFactory;
49
|