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 package compiler.compilercontrol.jcmd;
25
26 import compiler.compilercontrol.parser.HugeDirectiveUtil;
27 import compiler.compilercontrol.share.AbstractTestBase;
28 import compiler.compilercontrol.share.method.MethodDescriptor;
29 import compiler.compilercontrol.share.scenario.Executor;
30 import jdk.test.lib.OutputAnalyzer;
31 import jdk.test.lib.TimeLimitedRunner;
32 import jdk.test.lib.Utils;
33 import pool.PoolHelper;
34
35 import java.util.ArrayList;
36 import java.util.List;
37 import java.util.Random;
38 import java.util.concurrent.TimeUnit;
39 import java.util.stream.Collectors;
40
41 public abstract class StressAddJcmdBase {
42 private static final int DIRECTIVES_AMOUNT = Integer.getInteger(
43 "compiler.compilercontrol.jcmd.StressAddJcmdBase.directivesAmount",
44 200);
45 private static final int TIMEOUT = Integer.getInteger(
46 "compiler.compilercontrol.jcmd.StressAddJcmdBase.timeout",
47 30);
48 private static final List<MethodDescriptor> DESCRIPTORS = new PoolHelper()
49 .getAllMethods().stream()
50 .map(pair -> AbstractTestBase
51 .getValidMethodDescriptor(pair.first))
52 .collect(Collectors.toList());
53 private static final String DIRECTIVE_FILE = "directives.json";
|
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 package compiler.compilercontrol.jcmd;
25
26 import compiler.compilercontrol.parser.HugeDirectiveUtil;
27 import compiler.compilercontrol.share.AbstractTestBase;
28 import compiler.compilercontrol.share.method.MethodDescriptor;
29 import compiler.compilercontrol.share.pool.PoolHelper;
30 import compiler.compilercontrol.share.scenario.Executor;
31 import jdk.test.lib.OutputAnalyzer;
32 import jdk.test.lib.TimeLimitedRunner;
33 import jdk.test.lib.Utils;
34
35 import java.util.ArrayList;
36 import java.util.List;
37 import java.util.Random;
38 import java.util.concurrent.TimeUnit;
39 import java.util.stream.Collectors;
40
41 public abstract class StressAddJcmdBase {
42 private static final int DIRECTIVES_AMOUNT = Integer.getInteger(
43 "compiler.compilercontrol.jcmd.StressAddJcmdBase.directivesAmount",
44 200);
45 private static final int TIMEOUT = Integer.getInteger(
46 "compiler.compilercontrol.jcmd.StressAddJcmdBase.timeout",
47 30);
48 private static final List<MethodDescriptor> DESCRIPTORS = new PoolHelper()
49 .getAllMethods().stream()
50 .map(pair -> AbstractTestBase
51 .getValidMethodDescriptor(pair.first))
52 .collect(Collectors.toList());
53 private static final String DIRECTIVE_FILE = "directives.json";
|