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 /* 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; 41 42 import compiler.testlibrary.CompilerUtils; 43 import jdk.test.lib.Asserts; 44 import jdk.test.lib.JDKToolFinder; 45 import jdk.test.lib.OutputAnalyzer; 46 import jdk.test.lib.Utils; 47 import jdk.test.lib.dtrace.DtraceResultsAnalyzer; 48 import jdk.test.lib.dtrace.DtraceRunner; 49 50 import java.io.IOException; 51 import java.lang.reflect.Executable; 52 import java.nio.file.Files; 53 import java.nio.file.Paths; 54 import java.util.Arrays; 55 import java.util.Collections; 56 import java.util.HashMap; 57 import java.util.HashSet; 58 import java.util.List; 59 import java.util.Map; 60 import java.util.Random; 61 import java.util.Set; 62 import java.util.regex.Matcher; 63 import java.util.regex.Pattern; 64 import java.util.stream.Collectors; 65 66 public class SegmentedCodeCacheDtraceTest { 67 68 private static final String WORKER_CLASS_NAME | 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 /* 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 /test/lib / 31 * 32 * @build sun.hotspot.WhiteBox 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; 41 42 import compiler.testlibrary.CompilerUtils; 43 import jdk.test.lib.Asserts; 44 import jdk.test.lib.JDKToolFinder; 45 import jdk.test.lib.process.OutputAnalyzer; 46 import jdk.test.lib.Utils; 47 48 import java.io.IOException; 49 import java.lang.reflect.Executable; 50 import java.nio.file.Files; 51 import java.nio.file.Paths; 52 import java.util.Arrays; 53 import java.util.Collections; 54 import java.util.HashMap; 55 import java.util.HashSet; 56 import java.util.List; 57 import java.util.Map; 58 import java.util.Random; 59 import java.util.Set; 60 import java.util.regex.Matcher; 61 import java.util.regex.Pattern; 62 import java.util.stream.Collectors; 63 64 public class SegmentedCodeCacheDtraceTest { 65 66 private static final String WORKER_CLASS_NAME |