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 import com.oracle.java.testlibrary.*;
25
26 /*
27 * @test CheckCompileThresholdScaling
28 * @bug 8059604
29 * @summary "Add CompileThresholdScaling flag to control when methods are first compiled (with +/-TieredCompilation)"
30 * @library /testlibrary
31 * @run main CheckCompileThresholdScaling
32 */
33
34 public class CheckCompileThresholdScaling {
35
36 // The flag CompileThresholdScaling scales compilation thresholds
37 // in the following way:
38 //
39 // - if CompileThresholdScaling==1.0, the default threshold values
40 // are used;
41 //
42 // - if CompileThresholdScaling>1.0, threshold values are scaled
43 // up (e.g., CompileThresholdScalingPercentage=1.2 scales up
44 // thresholds by a factor of 1.2X);
45 //
46 // - if CompileThresholdScaling<1.0, threshold values are scaled
47 // down;
48 //
49 // - if CompileThresholdScaling==0, compilation is disabled
50 // (equivalent to using -Xint).
|
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 import com.oracle.java.testlibrary.*;
25
26 /*
27 * @test CheckCompileThresholdScaling
28 * @bug 8059604
29 * @summary "Add CompileThresholdScaling flag to control when methods are first compiled (with +/-TieredCompilation)"
30 * @library /testlibrary
31 * @build com.oracle.java.testlibrary.*
32 * @run main CheckCompileThresholdScaling
33 */
34
35 public class CheckCompileThresholdScaling {
36
37 // The flag CompileThresholdScaling scales compilation thresholds
38 // in the following way:
39 //
40 // - if CompileThresholdScaling==1.0, the default threshold values
41 // are used;
42 //
43 // - if CompileThresholdScaling>1.0, threshold values are scaled
44 // up (e.g., CompileThresholdScalingPercentage=1.2 scales up
45 // thresholds by a factor of 1.2X);
46 //
47 // - if CompileThresholdScaling<1.0, threshold values are scaled
48 // down;
49 //
50 // - if CompileThresholdScaling==0, compilation is disabled
51 // (equivalent to using -Xint).
|