equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
25 * @test SegmentedCodeCacheDtraceTest |
25 * @test SegmentedCodeCacheDtraceTest |
26 * @bug 8015774 |
26 * @bug 8015774 |
27 * @summary testing of dtrace for segmented code cache |
27 * @summary testing of dtrace for segmented code cache |
28 * @requires os.family=="solaris" |
28 * @requires os.family=="solaris" |
29 * @modules java.base/jdk.internal.misc |
29 * @modules java.base/jdk.internal.misc |
30 * @library /testlibrary /test/lib / |
30 * @library /test/lib / |
31 * |
31 * |
32 * @build compiler.codecache.dtrace.SegmentedCodeCacheDtraceTest |
32 * @build sun.hotspot.WhiteBox |
33 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
33 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
34 * sun.hotspot.WhiteBox$WhiteBoxPermission |
34 * sun.hotspot.WhiteBox$WhiteBoxPermission |
35 * @run main/othervm/timeout=600 -Xbootclasspath/a:. |
35 * @run main/othervm/timeout=600 -Xbootclasspath/a:. |
36 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI |
36 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI |
37 * compiler.codecache.dtrace.SegmentedCodeCacheDtraceTest |
37 * compiler.codecache.dtrace.SegmentedCodeCacheDtraceTest |
40 package compiler.codecache.dtrace; |
40 package compiler.codecache.dtrace; |
41 |
41 |
42 import compiler.testlibrary.CompilerUtils; |
42 import compiler.testlibrary.CompilerUtils; |
43 import jdk.test.lib.Asserts; |
43 import jdk.test.lib.Asserts; |
44 import jdk.test.lib.JDKToolFinder; |
44 import jdk.test.lib.JDKToolFinder; |
45 import jdk.test.lib.OutputAnalyzer; |
45 import jdk.test.lib.process.OutputAnalyzer; |
46 import jdk.test.lib.Utils; |
46 import jdk.test.lib.Utils; |
47 import jdk.test.lib.dtrace.DtraceResultsAnalyzer; |
|
48 import jdk.test.lib.dtrace.DtraceRunner; |
|
49 |
47 |
50 import java.io.IOException; |
48 import java.io.IOException; |
51 import java.lang.reflect.Executable; |
49 import java.lang.reflect.Executable; |
52 import java.nio.file.Files; |
50 import java.nio.file.Files; |
53 import java.nio.file.Paths; |
51 import java.nio.file.Paths; |