test/compiler/codecache/dtrace/SegmentedCodeCacheDtraceTest.java

Print this page




  31 import java.io.IOException;
  32 import java.lang.reflect.Executable;
  33 import java.nio.file.Files;
  34 import java.nio.file.Paths;
  35 import java.util.Arrays;
  36 import java.util.Collections;
  37 import java.util.HashMap;
  38 import java.util.HashSet;
  39 import java.util.List;
  40 import java.util.Map;
  41 import java.util.Random;
  42 import java.util.Set;
  43 import java.util.regex.Matcher;
  44 import java.util.regex.Pattern;
  45 import java.util.stream.Collectors;
  46 
  47 /*
  48  * @test SegmentedCodeCacheDtraceTest
  49  * @bug 8015774
  50  * @requires os.family=="solaris"
  51  * @library /testlibrary / /../../test/lib
  52  * @build SegmentedCodeCacheDtraceTestWorker
  53  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  54  *     sun.hotspot.WhiteBox$WhiteBoxPermission
  55  * @run main/othervm/timeout=600 -Xbootclasspath/a:. -XX:+TieredCompilation
  56  *     -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  57  *     SegmentedCodeCacheDtraceTest
  58  * @summary testing of dtrace for segmented code cache
  59  */
  60 public class SegmentedCodeCacheDtraceTest {
  61 
  62     private static final String WORKER_CLASS_NAME
  63             = SegmentedCodeCacheDtraceTestWorker.class.getName();
  64     private static final String JAVA_OPTS = " -XX:+DTraceMethodProbes "
  65             + "-Xbootclasspath/a:" + System.getProperty("test.classes") + " "
  66             + "-XX:+UnlockDiagnosticVMOptions "
  67             + "-XX:+WhiteBoxAPI -XX:+SegmentedCodeCache "
  68             + "-XX:CompileCommand=compileonly,"
  69             + WORKER_CLASS_NAME + "::* "
  70             + " -classpath " + System.getProperty("test.class.path") + " "
  71             + String.join(" ", Utils.getTestJavaOpts());




  31 import java.io.IOException;
  32 import java.lang.reflect.Executable;
  33 import java.nio.file.Files;
  34 import java.nio.file.Paths;
  35 import java.util.Arrays;
  36 import java.util.Collections;
  37 import java.util.HashMap;
  38 import java.util.HashSet;
  39 import java.util.List;
  40 import java.util.Map;
  41 import java.util.Random;
  42 import java.util.Set;
  43 import java.util.regex.Matcher;
  44 import java.util.regex.Pattern;
  45 import java.util.stream.Collectors;
  46 
  47 /*
  48  * @test SegmentedCodeCacheDtraceTest
  49  * @bug 8015774
  50  * @requires os.family=="solaris"
  51  * @library /testlibrary / /test/lib
  52  * @build SegmentedCodeCacheDtraceTestWorker
  53  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  54  *     sun.hotspot.WhiteBox$WhiteBoxPermission
  55  * @run main/othervm/timeout=600 -Xbootclasspath/a:. -XX:+TieredCompilation
  56  *     -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
  57  *     SegmentedCodeCacheDtraceTest
  58  * @summary testing of dtrace for segmented code cache
  59  */
  60 public class SegmentedCodeCacheDtraceTest {
  61 
  62     private static final String WORKER_CLASS_NAME
  63             = SegmentedCodeCacheDtraceTestWorker.class.getName();
  64     private static final String JAVA_OPTS = " -XX:+DTraceMethodProbes "
  65             + "-Xbootclasspath/a:" + System.getProperty("test.classes") + " "
  66             + "-XX:+UnlockDiagnosticVMOptions "
  67             + "-XX:+WhiteBoxAPI -XX:+SegmentedCodeCache "
  68             + "-XX:CompileCommand=compileonly,"
  69             + WORKER_CLASS_NAME + "::* "
  70             + " -classpath " + System.getProperty("test.class.path") + " "
  71             + String.join(" ", Utils.getTestJavaOpts());