hotspot/test/compiler/arguments/CheckCompileThresholdScaling.java
author ykantser
Thu, 26 Mar 2015 16:36:56 +0100
changeset 29678 dd2f3932c21e
parent 28928 e3815b017664
child 30604 b8d532cb6420
permissions -rw-r--r--
8075586: Add @modules as needed to the open hotspot tests Reviewed-by: sla, ctornqvi, lfoltan, mchung, alanb Contributed-by: alexander.kulyakhtin@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
     1
/*
29678
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 28928
diff changeset
     2
 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
     4
 *
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
     7
 * published by the Free Software Foundation.
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
     8
 *
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    13
 * accompanied this code).
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    14
 *
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    18
 *
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    21
 * questions.
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    22
 */
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    23
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    24
import com.oracle.java.testlibrary.*;
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    25
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    26
/*
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    27
 * @test CheckCompileThresholdScaling
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    28
 * @bug 8059604
28928
e3815b017664 8072398: assert fails in L1RGenerator::increment_event_counter_impl
zmajo
parents: 28726
diff changeset
    29
 * @summary "Add CompileThresholdScaling flag to control when methods are first compiled (with +/-TieredCompilation)"
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    30
 * @library /testlibrary
29678
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 28928
diff changeset
    31
 * @modules java.base/sun.misc
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 28928
diff changeset
    32
 *          java.management
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    33
 * @run main CheckCompileThresholdScaling
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    34
 */
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    35
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    36
public class CheckCompileThresholdScaling {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    37
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    38
    // The flag CompileThresholdScaling scales compilation thresholds
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    39
    // in the following way:
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    40
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    41
    // - if CompileThresholdScaling==1.0, the default threshold values
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    42
    // are used;
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    43
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    44
    // - if CompileThresholdScaling>1.0, threshold values are scaled
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    45
    // up (e.g., CompileThresholdScalingPercentage=1.2 scales up
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    46
    // thresholds by a factor of 1.2X);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    47
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    48
    // - if CompileThresholdScaling<1.0, threshold values are scaled
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    49
    // down;
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    50
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    51
    // - if CompileThresholdScaling==0, compilation is disabled
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    52
    // (equivalent to using -Xint).
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    53
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    54
    // With tiered compilation enabled, the values of the following
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    55
    // flags are changed:
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    56
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    57
    // Tier0InvokeNotifyFreqLog, Tier0BackedgeNotifyFreqLog,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    58
    // Tier3InvocationThreshold, Tier3MinInvocationThreshold,
28650
772aaab2582f 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
zmajo
parents: 28219
diff changeset
    59
    // Tier3CompileThreshold, Tier3BackEdgeThreshold,
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    60
    // Tier2InvokeNotifyFreqLog, Tier2BackedgeNotifyFreqLog,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    61
    // Tier3InvokeNotifyFreqLog, Tier3BackedgeNotifyFreqLog,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    62
    // Tier23InlineeNotifyFreqLog, Tier4InvocationThreshold,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    63
    // Tier4MinInvocationThreshold, Tier4CompileThreshold,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    64
    // Tier4BackEdgeThreshold
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    65
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    66
    // With tiered compilation disabled the value of CompileThreshold
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    67
    // is scaled.
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    68
    private static final String[][] NON_TIERED_ARGUMENTS = {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    69
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    70
            "-XX:-TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    71
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    72
            "-XX:CompileThreshold=1000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    73
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    74
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    75
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    76
            "-XX:-TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    77
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    78
            "-XX:CompileThreshold=1000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    79
            "-XX:CompileThresholdScaling=1.25",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    80
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    81
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    82
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    83
            "-XX:-TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    84
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    85
            "-XX:CompileThreshold=1000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    86
            "-XX:CompileThresholdScaling=0.75",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    87
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    88
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    89
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    90
            "-XX:-TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    91
            "-XX:+PrintFlagsFinal",
28726
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
    92
            "-XX:CompileThreshold=1000",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
    93
            "-XX:CompileThresholdScaling=0.0",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
    94
            "-version"
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
    95
        },
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
    96
        {
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
    97
            "-XX:-TieredCompilation",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
    98
            "-XX:+PrintFlagsFinal",
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    99
            "-XX:CompileThreshold=0",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   100
            "-XX:CompileThresholdScaling=0.75",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   101
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   102
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   103
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   104
    };
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   105
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   106
    private static final String[][] NON_TIERED_EXPECTED_OUTPUTS = {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   107
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   108
            "intx CompileThreshold                         := 1000                                {pd product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   109
            "double CompileThresholdScaling                   = 1.000000                            {product}"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   110
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   111
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   112
            "intx CompileThreshold                         := 1250                                {pd product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   113
            "double CompileThresholdScaling                  := 1.250000                            {product}"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   114
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   115
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   116
            "intx CompileThreshold                         := 750                                 {pd product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   117
            "double CompileThresholdScaling                  := 0.750000                            {product}"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   118
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   119
        {
28726
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   120
            "intx CompileThreshold                         := 1000                                {pd product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   121
            "double CompileThresholdScaling                  := 0.000000                            {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   122
            "interpreted mode"
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   123
        },
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   124
        {
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   125
            "intx CompileThreshold                         := 0                                   {pd product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   126
            "double CompileThresholdScaling                  := 0.750000                            {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   127
            "interpreted mode"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   128
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   129
    };
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   130
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   131
    private static final String[][] TIERED_ARGUMENTS = {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   132
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   133
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   134
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   135
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   136
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   137
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   138
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   139
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   140
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   141
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   142
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   143
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   144
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   145
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   146
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   147
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   148
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   149
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   150
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   151
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   152
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   153
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   154
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   155
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   156
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   157
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   158
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   159
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   160
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   161
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   162
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   163
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   164
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   165
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   166
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   167
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   168
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   169
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   170
            "-XX:CompileThresholdScaling=0.75",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   171
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   172
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   173
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   174
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   175
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   176
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   177
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   178
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   179
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   180
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   181
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   182
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   183
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   184
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   185
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   186
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   187
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   188
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   189
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   190
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   191
            "-XX:CompileThresholdScaling=1.25",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   192
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   193
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   194
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   195
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   196
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   197
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   198
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   199
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   200
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   201
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   202
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   203
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   204
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   205
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   206
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   207
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   208
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   209
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   210
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   211
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   212
            "-XX:CompileThresholdScaling=2.0",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   213
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   214
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   215
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   216
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   217
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   218
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   219
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   220
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   221
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   222
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   223
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   224
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   225
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   226
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   227
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   228
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   229
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   230
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   231
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   232
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   233
            "-XX:CompileThresholdScaling=0.0",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   234
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   235
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   236
    };
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   237
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   238
    private static final String[][] TIERED_EXPECTED_OUTPUTS = {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   239
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   240
            "intx Tier0BackedgeNotifyFreqLog               := 10                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   241
            "intx Tier0InvokeNotifyFreqLog                 := 7                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   242
            "intx Tier23InlineeNotifyFreqLog               := 20                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   243
            "intx Tier2BackedgeNotifyFreqLog               := 14                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   244
            "intx Tier2InvokeNotifyFreqLog                 := 11                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   245
            "intx Tier3BackEdgeThreshold                   := 60000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   246
            "intx Tier3BackedgeNotifyFreqLog               := 13                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   247
            "intx Tier3CompileThreshold                    := 2000                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   248
            "intx Tier3InvocationThreshold                 := 200                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   249
            "intx Tier3InvokeNotifyFreqLog                 := 10                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   250
            "intx Tier3MinInvocationThreshold              := 100                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   251
            "intx Tier4BackEdgeThreshold                   := 40000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   252
            "intx Tier4CompileThreshold                    := 15000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   253
            "intx Tier4InvocationThreshold                 := 5000                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   254
            "intx Tier4MinInvocationThreshold              := 600                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   255
            "double CompileThresholdScaling                   = 1.000000                            {product}"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   256
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   257
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   258
            "intx Tier0BackedgeNotifyFreqLog               := 9                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   259
            "intx Tier0InvokeNotifyFreqLog                 := 6                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   260
            "intx Tier23InlineeNotifyFreqLog               := 19                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   261
            "intx Tier2BackedgeNotifyFreqLog               := 13                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   262
            "intx Tier2InvokeNotifyFreqLog                 := 10                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   263
            "intx Tier3BackEdgeThreshold                   := 45000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   264
            "intx Tier3BackedgeNotifyFreqLog               := 12                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   265
            "intx Tier3CompileThreshold                    := 1500                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   266
            "intx Tier3InvocationThreshold                 := 150                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   267
            "intx Tier3InvokeNotifyFreqLog                 := 9                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   268
            "intx Tier3MinInvocationThreshold              := 75                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   269
            "intx Tier4BackEdgeThreshold                   := 30000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   270
            "intx Tier4CompileThreshold                    := 11250                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   271
            "intx Tier4InvocationThreshold                 := 3750                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   272
            "intx Tier4MinInvocationThreshold              := 450                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   273
            "double CompileThresholdScaling                  := 0.750000                            {product}"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   274
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   275
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   276
            "intx Tier0BackedgeNotifyFreqLog               := 10                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   277
            "intx Tier0InvokeNotifyFreqLog                 := 7                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   278
            "intx Tier23InlineeNotifyFreqLog               := 20                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   279
            "intx Tier2BackedgeNotifyFreqLog               := 14                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   280
            "intx Tier2InvokeNotifyFreqLog                 := 11                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   281
            "intx Tier3BackEdgeThreshold                   := 75000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   282
            "intx Tier3BackedgeNotifyFreqLog               := 13                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   283
            "intx Tier3CompileThreshold                    := 2500                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   284
            "intx Tier3InvocationThreshold                 := 250                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   285
            "intx Tier3InvokeNotifyFreqLog                 := 10                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   286
            "intx Tier3MinInvocationThreshold              := 125                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   287
            "intx Tier4BackEdgeThreshold                   := 50000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   288
            "intx Tier4CompileThreshold                    := 18750                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   289
            "intx Tier4InvocationThreshold                 := 6250                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   290
            "intx Tier4MinInvocationThreshold              := 750                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   291
            "double CompileThresholdScaling                  := 1.250000                            {product}"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   292
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   293
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   294
            "intx Tier0BackedgeNotifyFreqLog               := 11                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   295
            "intx Tier0InvokeNotifyFreqLog                 := 8                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   296
            "intx Tier23InlineeNotifyFreqLog               := 21                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   297
            "intx Tier2BackedgeNotifyFreqLog               := 15                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   298
            "intx Tier2InvokeNotifyFreqLog                 := 12                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   299
            "intx Tier3BackEdgeThreshold                   := 120000                              {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   300
            "intx Tier3BackedgeNotifyFreqLog               := 14                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   301
            "intx Tier3CompileThreshold                    := 4000                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   302
            "intx Tier3InvocationThreshold                 := 400                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   303
            "intx Tier3InvokeNotifyFreqLog                 := 11                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   304
            "intx Tier3MinInvocationThreshold              := 200                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   305
            "intx Tier4BackEdgeThreshold                   := 80000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   306
            "intx Tier4CompileThreshold                    := 30000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   307
            "intx Tier4InvocationThreshold                 := 10000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   308
            "intx Tier4MinInvocationThreshold              := 1200                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   309
            "double CompileThresholdScaling                  := 2.000000                            {product}"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   310
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   311
        {
28726
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   312
            "intx Tier0BackedgeNotifyFreqLog               := 10                                  {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   313
            "intx Tier0InvokeNotifyFreqLog                 := 7                                   {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   314
            "intx Tier23InlineeNotifyFreqLog               := 20                                  {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   315
            "intx Tier2BackedgeNotifyFreqLog               := 14                                  {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   316
            "intx Tier2InvokeNotifyFreqLog                 := 11                                  {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   317
            "intx Tier3BackEdgeThreshold                   := 60000                               {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   318
            "intx Tier3BackedgeNotifyFreqLog               := 13                                  {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   319
            "intx Tier3CompileThreshold                    := 2000                                {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   320
            "intx Tier3InvocationThreshold                 := 200                                 {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   321
            "intx Tier3InvokeNotifyFreqLog                 := 10                                  {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   322
            "intx Tier3MinInvocationThreshold              := 100                                 {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   323
            "intx Tier4BackEdgeThreshold                   := 40000                               {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   324
            "intx Tier4CompileThreshold                    := 15000                               {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   325
            "intx Tier4InvocationThreshold                 := 5000                                {product}",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   326
            "intx Tier4MinInvocationThreshold              := 600                                 {product}",
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   327
            "double CompileThresholdScaling                  := 0.000000                            {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   328
            "interpreted mode"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   329
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   330
    };
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   331
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   332
    private static void verifyValidOption(String[] arguments, String[] expected_outputs, boolean tiered) throws Exception {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   333
        ProcessBuilder pb;
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   334
        OutputAnalyzer out;
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   335
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   336
        pb = ProcessTools.createJavaProcessBuilder(arguments);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   337
        out = new OutputAnalyzer(pb.start());
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   338
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   339
        try {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   340
            for (String expected_output : expected_outputs) {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   341
                out.shouldContain(expected_output);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   342
            }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   343
            out.shouldHaveExitValue(0);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   344
        } catch (RuntimeException e) {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   345
            // Check if tiered compilation is available in this JVM
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   346
            // Version. Throw exception only if it is available.
28219
4fd1bd84c735 8067823: CheckCompileThresholdScaling.java throws RuntimeException
goetz
parents: 27148
diff changeset
   347
            if (!(tiered && out.getOutput().contains("TieredCompilation is disabled in this release."))) {
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   348
                throw new RuntimeException(e);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   349
            }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   350
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   351
    }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   352
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   353
    public static void main(String[] args) throws Exception {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   354
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   355
        if (NON_TIERED_ARGUMENTS.length != NON_TIERED_EXPECTED_OUTPUTS.length) {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   356
            throw new RuntimeException("Test is set up incorrectly: length of arguments and expected outputs in non-tiered mode of operation does not match.");
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   357
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   358
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   359
        if (TIERED_ARGUMENTS.length != TIERED_EXPECTED_OUTPUTS.length) {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   360
            throw new RuntimeException("Test is set up incorrectly: length of arguments and expected outputs in tiered mode of operation.");
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   361
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   362
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   363
        // Check if thresholds are scaled properly in non-tiered mode of operation
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   364
        for (int i = 0; i < NON_TIERED_ARGUMENTS.length; i++) {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   365
            verifyValidOption(NON_TIERED_ARGUMENTS[i], NON_TIERED_EXPECTED_OUTPUTS[i], false);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   366
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   367
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   368
        // Check if thresholds are scaled properly in tiered mode of operation
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   369
        for (int i = 0; i < TIERED_ARGUMENTS.length; i++) {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   370
            verifyValidOption(TIERED_ARGUMENTS[i], TIERED_EXPECTED_OUTPUTS[i], true);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   371
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   372
    }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   373
}