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

test/compiler/compilercontrol/jcmd/StressAddJcmdBase.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:

*** 35,50 **** import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; public abstract class StressAddJcmdBase { ! private static final int DIRECTIVES_AMOUNT = Integer.getInteger( "compiler.compilercontrol.jcmd.StressAddJcmdBase.directivesAmount", ! 1000); private static final int DIRECTIVE_FILES = Integer.getInteger( "compiler.compilercontrol.jcmd.StressAddJcmdBase.directiveFiles", ! 5); private static final List<MethodDescriptor> DESCRIPTORS = new PoolHelper() .getAllMethods().stream() .map(pair -> AbstractTestBase .getValidMethodDescriptor(pair.first)) .collect(Collectors.toList()); --- 35,50 ---- import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; public abstract class StressAddJcmdBase { ! protected static int DIRECTIVES_AMOUNT = Integer.getInteger( "compiler.compilercontrol.jcmd.StressAddJcmdBase.directivesAmount", ! 100); private static final int DIRECTIVE_FILES = Integer.getInteger( "compiler.compilercontrol.jcmd.StressAddJcmdBase.directiveFiles", ! 4); private static final List<MethodDescriptor> DESCRIPTORS = new PoolHelper() .getAllMethods().stream() .map(pair -> AbstractTestBase .getValidMethodDescriptor(pair.first)) .collect(Collectors.toList());
*** 94,109 **** this.jcmdCommands = jcmdCommands; } @Override protected OutputAnalyzer[] executeJCMD(int pid) { - TimeLimitedRunner runner = new TimeLimitedRunner( - Utils.DEFAULT_TEST_TIMEOUT, - Utils.TIMEOUT_FACTOR, - () -> makeConnection(pid, jcmdCommands)); try { ! runner.call(); } catch (Exception e) { throw new Error("Exception during the execution: " + e, e); } finish(); return new OutputAnalyzer[0]; --- 94,105 ---- this.jcmdCommands = jcmdCommands; } @Override protected OutputAnalyzer[] executeJCMD(int pid) { try { ! makeConnection(pid, jcmdCommands); } catch (Exception e) { throw new Error("Exception during the execution: " + e, e); } finish(); return new OutputAnalyzer[0];
test/compiler/compilercontrol/jcmd/StressAddJcmdBase.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File