18 * |
18 * |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
|
23 |
|
24 /* |
|
25 * @test SegmentedCodeCacheDtraceTest |
|
26 * @bug 8015774 |
|
27 * @summary testing of dtrace for segmented code cache |
|
28 * @requires os.family=="solaris" |
|
29 * @modules java.base/jdk.internal.misc |
|
30 * @library /testlibrary /test/lib / |
|
31 * |
|
32 * @build compiler.codecache.dtrace.SegmentedCodeCacheDtraceTest |
|
33 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
|
34 * sun.hotspot.WhiteBox$WhiteBoxPermission |
|
35 * @run main/othervm/timeout=600 -Xbootclasspath/a:. |
|
36 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI |
|
37 * compiler.codecache.dtrace.SegmentedCodeCacheDtraceTest |
|
38 */ |
|
39 |
|
40 package compiler.codecache.dtrace; |
23 |
41 |
24 import compiler.testlibrary.CompilerUtils; |
42 import compiler.testlibrary.CompilerUtils; |
25 import jdk.test.lib.Asserts; |
43 import jdk.test.lib.Asserts; |
26 import jdk.test.lib.JDKToolFinder; |
44 import jdk.test.lib.JDKToolFinder; |
27 import jdk.test.lib.OutputAnalyzer; |
45 import jdk.test.lib.OutputAnalyzer; |
28 import jdk.test.lib.Utils; |
46 import jdk.test.lib.Utils; |
29 import jdk.test.lib.dtrace.DtraceResultsAnalyzer; |
47 import jdk.test.lib.dtrace.DtraceResultsAnalyzer; |
30 import jdk.test.lib.dtrace.DtraceRunner; |
48 import jdk.test.lib.dtrace.DtraceRunner; |
|
49 |
31 import java.io.IOException; |
50 import java.io.IOException; |
32 import java.lang.reflect.Executable; |
51 import java.lang.reflect.Executable; |
33 import java.nio.file.Files; |
52 import java.nio.file.Files; |
34 import java.nio.file.Paths; |
53 import java.nio.file.Paths; |
35 import java.util.Arrays; |
54 import java.util.Arrays; |
42 import java.util.Set; |
61 import java.util.Set; |
43 import java.util.regex.Matcher; |
62 import java.util.regex.Matcher; |
44 import java.util.regex.Pattern; |
63 import java.util.regex.Pattern; |
45 import java.util.stream.Collectors; |
64 import java.util.stream.Collectors; |
46 |
65 |
47 /* |
|
48 * @test SegmentedCodeCacheDtraceTest |
|
49 * @bug 8015774 |
|
50 * @requires os.family=="solaris" |
|
51 * @modules java.base/jdk.internal.misc |
|
52 * @library /testlibrary / /test/lib |
|
53 * @build SegmentedCodeCacheDtraceTestWorker |
|
54 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
|
55 * sun.hotspot.WhiteBox$WhiteBoxPermission |
|
56 * @run main/othervm/timeout=600 -Xbootclasspath/a:. -XX:+TieredCompilation |
|
57 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI |
|
58 * SegmentedCodeCacheDtraceTest |
|
59 * @summary testing of dtrace for segmented code cache |
|
60 */ |
|
61 public class SegmentedCodeCacheDtraceTest { |
66 public class SegmentedCodeCacheDtraceTest { |
62 |
67 |
63 private static final String WORKER_CLASS_NAME |
68 private static final String WORKER_CLASS_NAME |
64 = SegmentedCodeCacheDtraceTestWorker.class.getName(); |
69 = SegmentedCodeCacheDtraceTestWorker.class.getName(); |
65 private static final String JAVA_OPTS = " -XX:+DTraceMethodProbes " |
70 private static final String JAVA_OPTS = " -XX:+DTraceMethodProbes " |