hotspot/test/compiler/arguments/CheckCompileThresholdScaling.java
author zmajo
Wed, 21 Jan 2015 10:51:35 +0100
changeset 28650 772aaab2582f
parent 28219 4fd1bd84c735
child 28726 e69d7f50ef94
permissions -rw-r--r--
8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds) Summary: Changed interpreter and compilation policies to allow using CompileThresholdScaling on a per-method level Reviewed-by: jrose, kvn
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
/*
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
     2
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
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
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    29
 * @summary "Add CompileThresholdScalingPercentage flag to control when methods are first compiled (with +/-TieredCompilation)"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    30
 * @library /testlibrary
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    31
 * @run main CheckCompileThresholdScaling
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    32
 */
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    33
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    34
public class CheckCompileThresholdScaling {
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
    // 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
    37
    // in the following way:
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    38
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    39
    // - 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
    40
    // are used;
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    41
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    42
    // - 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
    43
    // 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
    44
    // 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
    45
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    46
    // - 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
    47
    // down;
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    48
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    49
    // - 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
    50
    // (equivalent to using -Xint).
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    51
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    52
    // 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
    53
    // flags are changed:
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    54
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    55
    // Tier0InvokeNotifyFreqLog, Tier0BackedgeNotifyFreqLog,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    56
    // Tier3InvocationThreshold, Tier3MinInvocationThreshold,
28650
772aaab2582f 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
zmajo
parents: 28219
diff changeset
    57
    // Tier3CompileThreshold, Tier3BackEdgeThreshold,
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    58
    // Tier2InvokeNotifyFreqLog, Tier2BackedgeNotifyFreqLog,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    59
    // Tier3InvokeNotifyFreqLog, Tier3BackedgeNotifyFreqLog,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    60
    // Tier23InlineeNotifyFreqLog, Tier4InvocationThreshold,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    61
    // Tier4MinInvocationThreshold, Tier4CompileThreshold,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    62
    // Tier4BackEdgeThreshold
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    63
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    64
    // 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
    65
    // is scaled.
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    66
    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
    67
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    68
            "-XX:-TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    69
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    70
            "-XX:CompileThreshold=1000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    71
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    72
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    73
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    74
            "-XX:-TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    75
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    76
            "-XX:CompileThreshold=1000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    77
            "-XX:CompileThresholdScaling=1.25",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    78
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    79
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    80
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    81
            "-XX:-TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    82
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    83
            "-XX:CompileThreshold=1000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    84
            "-XX:CompileThresholdScaling=0.75",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    85
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    86
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    87
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    88
            "-XX:-TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    89
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    90
            "-XX:CompileThreshold=0",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    91
            "-XX:CompileThresholdScaling=0.75",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    92
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    93
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    94
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    95
    };
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    96
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    97
    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
    98
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    99
            "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
   100
            "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
   101
        },
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
            "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
   104
            "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
   105
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   106
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   107
            "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
   108
            "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
   109
        },
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
            "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
   112
            "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
   113
            "interpreted mode"
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
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   117
    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
   118
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   119
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   120
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   121
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   122
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   123
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   124
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   125
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   126
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   127
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   128
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   129
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   130
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   131
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   132
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   133
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   134
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   135
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   136
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   137
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   138
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   139
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   140
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   141
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   142
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   143
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   144
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   145
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   146
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   147
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   148
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   149
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   150
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   151
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   152
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   153
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   154
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   155
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   156
            "-XX:CompileThresholdScaling=0.75",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   157
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   158
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   159
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   160
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   161
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   162
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   163
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   164
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   165
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   166
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   167
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   168
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   169
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   170
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   171
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   172
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   173
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   174
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   175
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   176
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   177
            "-XX:CompileThresholdScaling=1.25",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   178
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   179
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   180
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   181
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   182
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   183
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   184
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   185
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   186
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   187
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   188
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   189
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   190
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   191
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   192
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   193
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   194
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   195
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   196
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   197
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   198
            "-XX:CompileThresholdScaling=2.0",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   199
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   200
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   201
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   202
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   203
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   204
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   205
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   206
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   207
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   208
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   209
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   210
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   211
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   212
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   213
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   214
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   215
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   216
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   217
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   218
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   219
            "-XX:CompileThresholdScaling=0.0",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   220
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   221
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   222
    };
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   223
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   224
    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
   225
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   226
            "intx Tier0BackedgeNotifyFreqLog               := 10                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   227
            "intx Tier0InvokeNotifyFreqLog                 := 7                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   228
            "intx Tier23InlineeNotifyFreqLog               := 20                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   229
            "intx Tier2BackedgeNotifyFreqLog               := 14                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   230
            "intx Tier2InvokeNotifyFreqLog                 := 11                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   231
            "intx Tier3BackEdgeThreshold                   := 60000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   232
            "intx Tier3BackedgeNotifyFreqLog               := 13                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   233
            "intx Tier3CompileThreshold                    := 2000                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   234
            "intx Tier3InvocationThreshold                 := 200                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   235
            "intx Tier3InvokeNotifyFreqLog                 := 10                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   236
            "intx Tier3MinInvocationThreshold              := 100                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   237
            "intx Tier4BackEdgeThreshold                   := 40000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   238
            "intx Tier4CompileThreshold                    := 15000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   239
            "intx Tier4InvocationThreshold                 := 5000                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   240
            "intx Tier4MinInvocationThreshold              := 600                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   241
            "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
   242
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   243
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   244
            "intx Tier0BackedgeNotifyFreqLog               := 9                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   245
            "intx Tier0InvokeNotifyFreqLog                 := 6                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   246
            "intx Tier23InlineeNotifyFreqLog               := 19                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   247
            "intx Tier2BackedgeNotifyFreqLog               := 13                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   248
            "intx Tier2InvokeNotifyFreqLog                 := 10                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   249
            "intx Tier3BackEdgeThreshold                   := 45000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   250
            "intx Tier3BackedgeNotifyFreqLog               := 12                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   251
            "intx Tier3CompileThreshold                    := 1500                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   252
            "intx Tier3InvocationThreshold                 := 150                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   253
            "intx Tier3InvokeNotifyFreqLog                 := 9                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   254
            "intx Tier3MinInvocationThreshold              := 75                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   255
            "intx Tier4BackEdgeThreshold                   := 30000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   256
            "intx Tier4CompileThreshold                    := 11250                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   257
            "intx Tier4InvocationThreshold                 := 3750                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   258
            "intx Tier4MinInvocationThreshold              := 450                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   259
            "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
   260
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   261
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   262
            "intx Tier0BackedgeNotifyFreqLog               := 10                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   263
            "intx Tier0InvokeNotifyFreqLog                 := 7                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   264
            "intx Tier23InlineeNotifyFreqLog               := 20                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   265
            "intx Tier2BackedgeNotifyFreqLog               := 14                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   266
            "intx Tier2InvokeNotifyFreqLog                 := 11                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   267
            "intx Tier3BackEdgeThreshold                   := 75000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   268
            "intx Tier3BackedgeNotifyFreqLog               := 13                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   269
            "intx Tier3CompileThreshold                    := 2500                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   270
            "intx Tier3InvocationThreshold                 := 250                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   271
            "intx Tier3InvokeNotifyFreqLog                 := 10                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   272
            "intx Tier3MinInvocationThreshold              := 125                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   273
            "intx Tier4BackEdgeThreshold                   := 50000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   274
            "intx Tier4CompileThreshold                    := 18750                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   275
            "intx Tier4InvocationThreshold                 := 6250                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   276
            "intx Tier4MinInvocationThreshold              := 750                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   277
            "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
   278
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   279
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   280
            "intx Tier0BackedgeNotifyFreqLog               := 11                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   281
            "intx Tier0InvokeNotifyFreqLog                 := 8                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   282
            "intx Tier23InlineeNotifyFreqLog               := 21                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   283
            "intx Tier2BackedgeNotifyFreqLog               := 15                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   284
            "intx Tier2InvokeNotifyFreqLog                 := 12                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   285
            "intx Tier3BackEdgeThreshold                   := 120000                              {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   286
            "intx Tier3BackedgeNotifyFreqLog               := 14                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   287
            "intx Tier3CompileThreshold                    := 4000                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   288
            "intx Tier3InvocationThreshold                 := 400                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   289
            "intx Tier3InvokeNotifyFreqLog                 := 11                                  {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   290
            "intx Tier3MinInvocationThreshold              := 200                                 {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   291
            "intx Tier4BackEdgeThreshold                   := 80000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   292
            "intx Tier4CompileThreshold                    := 30000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   293
            "intx Tier4InvocationThreshold                 := 10000                               {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   294
            "intx Tier4MinInvocationThreshold              := 1200                                {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   295
            "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
   296
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   297
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   298
            "intx Tier0BackedgeNotifyFreqLog               := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   299
            "intx Tier0InvokeNotifyFreqLog                 := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   300
            "intx Tier23InlineeNotifyFreqLog               := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   301
            "intx Tier2BackedgeNotifyFreqLog               := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   302
            "intx Tier2InvokeNotifyFreqLog                 := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   303
            "intx Tier3BackEdgeThreshold                   := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   304
            "intx Tier3BackedgeNotifyFreqLog               := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   305
            "intx Tier3CompileThreshold                    := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   306
            "intx Tier3InvocationThreshold                 := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   307
            "intx Tier3InvokeNotifyFreqLog                 := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   308
            "intx Tier3MinInvocationThreshold              := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   309
            "intx Tier4BackEdgeThreshold                   := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   310
            "intx Tier4CompileThreshold                    := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   311
            "intx Tier4InvocationThreshold                 := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   312
            "intx Tier4MinInvocationThreshold              := 0                                   {product}",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   313
            "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
   314
            "interpreted mode"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   315
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   316
    };
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   317
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   318
    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
   319
        ProcessBuilder pb;
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   320
        OutputAnalyzer out;
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   321
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   322
        pb = ProcessTools.createJavaProcessBuilder(arguments);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   323
        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
   324
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   325
        try {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   326
            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
   327
                out.shouldContain(expected_output);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   328
            }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   329
            out.shouldHaveExitValue(0);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   330
        } catch (RuntimeException e) {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   331
            // 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
   332
            // Version. Throw exception only if it is available.
28219
4fd1bd84c735 8067823: CheckCompileThresholdScaling.java throws RuntimeException
goetz
parents: 27148
diff changeset
   333
            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
   334
                throw new RuntimeException(e);
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
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   337
    }
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
    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
   340
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   341
        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
   342
            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
   343
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   344
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   345
        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
   346
            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
   347
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   348
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   349
        // 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
   350
        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
   351
            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
   352
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   353
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   354
        // 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
   355
        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
   356
            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
   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
}