test/compiler/compilercontrol/matcher/MethodMatcherTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff test/compiler/compilercontrol/matcher

test/compiler/compilercontrol/matcher/MethodMatcherTest.java

Print this page
rev 10454 : 8150054: Make compilercontrol test ignore xcomp
Summary: Add -Xmixed and use jtreg driver
Reviewed-by:


  25 
  26 import jdk.test.lib.Pair;
  27 import compiler.compilercontrol.share.method.MethodDescriptor;
  28 import compiler.compilercontrol.share.method.MethodGenerator;
  29 import pool.PoolHelper;
  30 import sun.hotspot.WhiteBox;
  31 
  32 import java.lang.reflect.Executable;
  33 import java.util.ArrayList;
  34 import java.util.List;
  35 import java.util.concurrent.Callable;
  36 import java.util.regex.Matcher;
  37 import java.util.regex.Pattern;
  38 
  39 /*
  40  * @test
  41  * @bug 8135068
  42  * @summary Tests CompilerCommand's method matcher
  43  * @library /testlibrary /test/lib /compiler/whitebox ../share /
  44  * @build compiler.compilercontrol.matcher.MethodMatcherTest
  45  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  46  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  47  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  48  *           -XX:+WhiteBoxAPI compiler.compilercontrol.matcher.MethodMatcherTest
  49  */
  50 public class MethodMatcherTest {
  51     private static final WhiteBox WB = WhiteBox.getWhiteBox();
  52     private static final PoolHelper POOL = new PoolHelper();
  53     private static final List<Pair<Executable, Callable<?>>> METHODS =
  54             POOL.getAllMethods();
  55     private static final int AMOUNT = Integer.parseInt(System
  56             .getProperty("test.amount", "25"));
  57 
  58     public static void main(String[] args) {
  59         MethodGenerator gen = new MethodGenerator();
  60         List<Pair<Executable, Callable<?>>> testMethods =
  61                 POOL.getAllMethods(PoolHelper.METHOD_FILTER);
  62         for (Pair<Executable, Callable<?>> pair : testMethods) {
  63             for (int i = 0; i < AMOUNT; i++) {
  64                 MethodDescriptor md = gen.generateRandomDescriptor(pair.first);
  65                 check(md);




  25 
  26 import jdk.test.lib.Pair;
  27 import compiler.compilercontrol.share.method.MethodDescriptor;
  28 import compiler.compilercontrol.share.method.MethodGenerator;
  29 import pool.PoolHelper;
  30 import sun.hotspot.WhiteBox;
  31 
  32 import java.lang.reflect.Executable;
  33 import java.util.ArrayList;
  34 import java.util.List;
  35 import java.util.concurrent.Callable;
  36 import java.util.regex.Matcher;
  37 import java.util.regex.Pattern;
  38 
  39 /*
  40  * @test
  41  * @bug 8135068
  42  * @summary Tests CompilerCommand's method matcher
  43  * @library /testlibrary /test/lib /compiler/whitebox ../share /
  44  * @build compiler.compilercontrol.matcher.MethodMatcherTest
  45  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  46  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  47  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  48  *           -XX:+WhiteBoxAPI compiler.compilercontrol.matcher.MethodMatcherTest
  49  */
  50 public class MethodMatcherTest {
  51     private static final WhiteBox WB = WhiteBox.getWhiteBox();
  52     private static final PoolHelper POOL = new PoolHelper();
  53     private static final List<Pair<Executable, Callable<?>>> METHODS =
  54             POOL.getAllMethods();
  55     private static final int AMOUNT = Integer.parseInt(System
  56             .getProperty("test.amount", "25"));
  57 
  58     public static void main(String[] args) {
  59         MethodGenerator gen = new MethodGenerator();
  60         List<Pair<Executable, Callable<?>>> testMethods =
  61                 POOL.getAllMethods(PoolHelper.METHOD_FILTER);
  62         for (Pair<Executable, Callable<?>> pair : testMethods) {
  63             for (int i = 0; i < AMOUNT; i++) {
  64                 MethodDescriptor md = gen.generateRandomDescriptor(pair.first);
  65                 check(md);


test/compiler/compilercontrol/matcher/MethodMatcherTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File