test/compiler/compilercontrol/jcmd/StressAddMultiThreadedTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff test/compiler/compilercontrol/jcmd/StressAddMultiThreadedTest.java

test/compiler/compilercontrol/jcmd/StressAddMultiThreadedTest.java

Print this page
rev 10233 : 8149060: [TESTBUG] compiler/compilercontrol/jcmd/StressAddMultiThreadedTest.java spawns tens of thousands of threads
Summary: Change test to use a small limited amount of threads
Reviewed-by:

*** 25,42 **** * @test * @bug 8137167 * @summary Tests jcmd to be able to add a lot of huge directive files with * parallel executed jcmds until timeout has reached * @library /testlibrary /test/lib /compiler/testlibrary ../share / - * @ignore 8148563 * @build compiler.compilercontrol.jcmd.StressAddMultiThreadedTest * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * compiler.testlibrary.CompilerUtils * compiler.compilercontrol.share.actions.* * @run main ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission ! * @run main/othervm/timeout=360 compiler.compilercontrol.jcmd.StressAddMultiThreadedTest */ package compiler.compilercontrol.jcmd; import jdk.test.lib.dcmd.PidJcmdExecutor; --- 25,41 ---- * @test * @bug 8137167 * @summary Tests jcmd to be able to add a lot of huge directive files with * parallel executed jcmds until timeout has reached * @library /testlibrary /test/lib /compiler/testlibrary ../share / * @build compiler.compilercontrol.jcmd.StressAddMultiThreadedTest * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * compiler.testlibrary.CompilerUtils * compiler.compilercontrol.share.actions.* * @run main ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission ! * @run main/othervm -Xmixed -XX:CompilerDirectivesLimit=1601 compiler.compilercontrol.jcmd.StressAddMultiThreadedTest */ package compiler.compilercontrol.jcmd; import jdk.test.lib.dcmd.PidJcmdExecutor;
*** 47,64 **** import java.util.concurrent.ExecutorService; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; public class StressAddMultiThreadedTest extends StressAddJcmdBase { private static final int THREADS; private final BlockingQueue<Runnable> queue; private final ExecutorService executor; static { ! THREADS = Runtime.getRuntime().availableProcessors() ! * Integer.getInteger("compiler.compilercontrol.jcmd" + ! ".StressAddMultiThreadedTest.threadFactor", 10); } public StressAddMultiThreadedTest() { queue = new ArrayBlockingQueue<>(THREADS); executor = new ThreadPoolExecutor(THREADS, THREADS, 100, --- 46,67 ---- import java.util.concurrent.ExecutorService; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; public class StressAddMultiThreadedTest extends StressAddJcmdBase { + private static final int THREADS; private final BlockingQueue<Runnable> queue; private final ExecutorService executor; static { ! THREADS = Integer.getInteger("compiler.compilercontrol.jcmd" + ! ".StressAddMultiThreadedTest.threadFactor", ! 4); ! DIRECTIVES_AMOUNT = Integer.getInteger( ! "compiler.compilercontrol.jcmd.StressAddJcmdBase.directivesAmount", ! 100); } public StressAddMultiThreadedTest() { queue = new ArrayBlockingQueue<>(THREADS); executor = new ThreadPoolExecutor(THREADS, THREADS, 100,
test/compiler/compilercontrol/jcmd/StressAddMultiThreadedTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File