hotspot/test/compiler/codecache/dtrace/SegmentedCodeCacheDtraceTest.java
changeset 30604 b8d532cb6420
parent 28392 f64a0abbff20
child 33072 71f9b0782023
equal deleted inserted replaced
30603:a8754858a7fc 30604:b8d532cb6420
     1 /*
     1 /*
     2  * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2015, 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.
    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 
    23 
    24 import com.oracle.java.testlibrary.Asserts;
    24 import jdk.test.lib.Asserts;
    25 import com.oracle.java.testlibrary.JDKToolFinder;
    25 import jdk.test.lib.JDKToolFinder;
    26 import com.oracle.java.testlibrary.OutputAnalyzer;
    26 import jdk.test.lib.OutputAnalyzer;
    27 import com.oracle.java.testlibrary.Utils;
    27 import jdk.test.lib.Utils;
    28 import com.oracle.java.testlibrary.dtrace.DtraceResultsAnalyzer;
    28 import jdk.test.lib.dtrace.DtraceResultsAnalyzer;
    29 import com.oracle.java.testlibrary.dtrace.DtraceRunner;
    29 import jdk.test.lib.dtrace.DtraceRunner;
    30 import java.io.IOException;
    30 import java.io.IOException;
    31 import java.lang.reflect.Executable;
    31 import java.lang.reflect.Executable;
    32 import java.nio.file.Files;
    32 import java.nio.file.Files;
    33 import java.nio.file.Paths;
    33 import java.nio.file.Paths;
    34 import java.util.Arrays;
    34 import java.util.Arrays;
   113         return null;
   113         return null;
   114     }
   114     }
   115 
   115 
   116     public static void main(String args[]) {
   116     public static void main(String args[]) {
   117         int iterations
   117         int iterations
   118                 = Integer.getInteger("com.oracle.java.testlibrary.iterations", 1);
   118                 = Integer.getInteger("jdk.test.lib.iterations", 1);
   119         if (!DtraceRunner.dtraceAvailable()) {
   119         if (!DtraceRunner.dtraceAvailable()) {
   120             System.out.println("INFO: There is no dtrace avaiable. Skipping.");
   120             System.out.println("INFO: There is no dtrace avaiable. Skipping.");
   121             return;
   121             return;
   122         }
   122         }
   123         int[] availableLevels = CompilerUtils.getAvailableCompilationLevels();
   123         int[] availableLevels = CompilerUtils.getAvailableCompilationLevels();