test/hotspot/jtreg/compiler/arguments/CheckCompileThresholdScaling.java
author jlaskey
Thu, 14 Nov 2019 12:39:56 -0400
branchJDK-8193209-branch
changeset 59087 effb66aab08b
parent 50589 e5d741569070
permissions -rw-r--r--
[mq]: other
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
/*
50589
e5d741569070 8184349: There should be some verification that EnableJVMCI is disabled if a GC not supporting JVMCI is selected
kvn
parents: 49460
diff changeset
     2
 * Copyright (c) 2014, 2018, 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
/*
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    25
 * @test CheckCompileThresholdScaling
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    26
 * @bug 8059604
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 37297
diff changeset
    27
 * @summary Add CompileThresholdScaling flag to control when methods are first compiled (with +/-TieredCompilation)
40631
ed82623d7831 8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents: 40072
diff changeset
    28
 * @library /test/lib
36851
03e2f4d0a421 8153737: Unsupported Module
chegar
parents: 30604
diff changeset
    29
 * @modules java.base/jdk.internal.misc
29678
dd2f3932c21e 8075586: Add @modules as needed to the open hotspot tests
ykantser
parents: 28928
diff changeset
    30
 *          java.management
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 37297
diff changeset
    31
 * @run driver compiler.arguments.CheckCompileThresholdScaling
27148
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
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 37297
diff changeset
    34
package compiler.arguments;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 37297
diff changeset
    35
40631
ed82623d7831 8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents: 40072
diff changeset
    36
import jdk.test.lib.process.OutputAnalyzer;
ed82623d7831 8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents: 40072
diff changeset
    37
import jdk.test.lib.process.ProcessTools;
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 37297
diff changeset
    38
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    39
public class CheckCompileThresholdScaling {
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
    // 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
    42
    // in the following way:
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, the default threshold values
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    45
    // are used;
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    46
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    47
    // - 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
    48
    // 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
    49
    // 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
    50
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    51
    // - 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
    52
    // down;
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
    // - 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
    55
    // (equivalent to using -Xint).
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
    // 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
    58
    // flags are changed:
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    59
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    60
    // Tier0InvokeNotifyFreqLog, Tier0BackedgeNotifyFreqLog,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    61
    // Tier3InvocationThreshold, Tier3MinInvocationThreshold,
28650
772aaab2582f 8059606: Enable per-method usage of CompileThresholdScaling (per-method compilation thresholds)
zmajo
parents: 28219
diff changeset
    62
    // Tier3CompileThreshold, Tier3BackEdgeThreshold,
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    63
    // Tier2InvokeNotifyFreqLog, Tier2BackedgeNotifyFreqLog,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    64
    // Tier3InvokeNotifyFreqLog, Tier3BackedgeNotifyFreqLog,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    65
    // Tier23InlineeNotifyFreqLog, Tier4InvocationThreshold,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    66
    // Tier4MinInvocationThreshold, Tier4CompileThreshold,
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    67
    // Tier4BackEdgeThreshold
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    68
    //
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    69
    // 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
    70
    // is scaled.
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    71
    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
    72
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    73
            "-XX:-TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    74
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    75
            "-XX:CompileThreshold=1000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    76
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    77
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    78
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    79
            "-XX:-TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    80
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    81
            "-XX:CompileThreshold=1000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    82
            "-XX:CompileThresholdScaling=1.25",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    83
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    84
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    85
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    86
            "-XX:-TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    87
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    88
            "-XX:CompileThreshold=1000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    89
            "-XX:CompileThresholdScaling=0.75",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    90
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    91
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    92
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    93
            "-XX:-TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
    94
            "-XX:+PrintFlagsFinal",
28726
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
    95
            "-XX:CompileThreshold=1000",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
    96
            "-XX:CompileThresholdScaling=0.0",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
    97
            "-version"
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
    98
        },
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
    99
        {
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   100
            "-XX:-TieredCompilation",
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   101
            "-XX:+PrintFlagsFinal",
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   102
            "-XX:CompileThreshold=0",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   103
            "-XX:CompileThresholdScaling=0.75",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   104
            "-version"
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
    };
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   108
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   109
    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
   110
        {
49460
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   111
            "intx CompileThreshold                         = 1000                                   {pd product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   112
            "double CompileThresholdScaling                  = 1.000000                                  {product} {default}"
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   113
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   114
        {
49460
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   115
            "intx CompileThreshold                         = 1250                                   {pd product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   116
            "double CompileThresholdScaling                  = 1.250000                                  {product} {command line}"
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   117
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   118
        {
49460
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   119
            "intx CompileThreshold                         = 750                                    {pd product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   120
            "double CompileThresholdScaling                  = 0.750000                                  {product} {command line}"
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   121
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   122
        {
49460
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   123
            "intx CompileThreshold                         = 1000                                   {pd product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   124
            "double CompileThresholdScaling                  = 0.000000                                  {product} {command line}",
28726
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   125
            "interpreted mode"
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   126
        },
e69d7f50ef94 8071312: compiler/arguments/CheckCompileThresholdScaling.java fails
zmajo
parents: 28650
diff changeset
   127
        {
50589
e5d741569070 8184349: There should be some verification that EnableJVMCI is disabled if a GC not supporting JVMCI is selected
kvn
parents: 49460
diff changeset
   128
            "intx CompileThreshold                         = 0                                      {pd product} {command line}",
49460
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   129
            "double CompileThresholdScaling                  = 0.750000                                  {product} {command line}",
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   130
            "interpreted mode"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   131
        }
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
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   134
    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
   135
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   136
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   137
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   138
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   139
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   140
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   141
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   142
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   143
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   144
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   145
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   146
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   147
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   148
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   149
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   150
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   151
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   152
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   153
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   154
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   155
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   156
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   157
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   158
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   159
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   160
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   161
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   162
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   163
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   164
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   165
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   166
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   167
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   168
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   169
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   170
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   171
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   172
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   173
            "-XX:CompileThresholdScaling=0.75",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   174
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   175
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   176
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   177
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   178
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   179
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   180
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   181
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   182
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   183
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   184
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   185
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   186
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   187
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   188
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   189
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   190
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   191
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   192
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   193
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   194
            "-XX:CompileThresholdScaling=1.25",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   195
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   196
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   197
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   198
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   199
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   200
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   201
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   202
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   203
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   204
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   205
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   206
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   207
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   208
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   209
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   210
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   211
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   212
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   213
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   214
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   215
            "-XX:CompileThresholdScaling=2.0",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   216
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   217
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   218
        {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   219
            "-XX:+TieredCompilation",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   220
            "-XX:+PrintFlagsFinal",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   221
            "-XX:Tier0InvokeNotifyFreqLog=7",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   222
            "-XX:Tier0BackedgeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   223
            "-XX:Tier3InvocationThreshold=200",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   224
            "-XX:Tier3MinInvocationThreshold=100",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   225
            "-XX:Tier3CompileThreshold=2000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   226
            "-XX:Tier3BackEdgeThreshold=60000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   227
            "-XX:Tier2InvokeNotifyFreqLog=11",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   228
            "-XX:Tier2BackedgeNotifyFreqLog=14",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   229
            "-XX:Tier3InvokeNotifyFreqLog=10",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   230
            "-XX:Tier3BackedgeNotifyFreqLog=13",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   231
            "-XX:Tier23InlineeNotifyFreqLog=20",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   232
            "-XX:Tier4InvocationThreshold=5000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   233
            "-XX:Tier4MinInvocationThreshold=600",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   234
            "-XX:Tier4CompileThreshold=15000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   235
            "-XX:Tier4BackEdgeThreshold=40000",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   236
            "-XX:CompileThresholdScaling=0.0",
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   237
            "-version"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   238
        }
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
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   241
    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
   242
        {
49460
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   243
            "intx Tier0BackedgeNotifyFreqLog               = 10                                        {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   244
            "intx Tier0InvokeNotifyFreqLog                 = 7                                         {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   245
            "intx Tier23InlineeNotifyFreqLog               = 20                                        {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   246
            "intx Tier2BackedgeNotifyFreqLog               = 14                                        {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   247
            "intx Tier2InvokeNotifyFreqLog                 = 11                                        {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   248
            "intx Tier3BackEdgeThreshold                   = 60000                                     {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   249
            "intx Tier3BackedgeNotifyFreqLog               = 13                                        {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   250
            "intx Tier3CompileThreshold                    = 2000                                      {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   251
            "intx Tier3InvocationThreshold                 = 200                                       {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   252
            "intx Tier3InvokeNotifyFreqLog                 = 10                                        {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   253
            "intx Tier3MinInvocationThreshold              = 100                                       {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   254
            "intx Tier4BackEdgeThreshold                   = 40000                                     {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   255
            "intx Tier4CompileThreshold                    = 15000                                     {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   256
            "intx Tier4InvocationThreshold                 = 5000                                      {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   257
            "intx Tier4MinInvocationThreshold              = 600                                       {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   258
            "double CompileThresholdScaling                  = 1.000000                                  {product} {default}"
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   259
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   260
        {
49460
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   261
            "intx Tier0BackedgeNotifyFreqLog               = 9                                         {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   262
            "intx Tier0InvokeNotifyFreqLog                 = 6                                         {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   263
            "intx Tier23InlineeNotifyFreqLog               = 19                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   264
            "intx Tier2BackedgeNotifyFreqLog               = 13                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   265
            "intx Tier2InvokeNotifyFreqLog                 = 10                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   266
            "intx Tier3BackEdgeThreshold                   = 45000                                     {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   267
            "intx Tier3BackedgeNotifyFreqLog               = 12                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   268
            "intx Tier3CompileThreshold                    = 1500                                      {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   269
            "intx Tier3InvocationThreshold                 = 150                                       {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   270
            "intx Tier3InvokeNotifyFreqLog                 = 9                                         {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   271
            "intx Tier3MinInvocationThreshold              = 75                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   272
            "intx Tier4BackEdgeThreshold                   = 30000                                     {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   273
            "intx Tier4CompileThreshold                    = 11250                                     {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   274
            "intx Tier4InvocationThreshold                 = 3750                                      {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   275
            "intx Tier4MinInvocationThreshold              = 450                                       {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   276
            "double CompileThresholdScaling                  = 0.750000                                  {product} {command line}"
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   277
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   278
        {
49460
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   279
            "intx Tier0BackedgeNotifyFreqLog               = 10                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   280
            "intx Tier0InvokeNotifyFreqLog                 = 7                                         {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   281
            "intx Tier23InlineeNotifyFreqLog               = 20                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   282
            "intx Tier2BackedgeNotifyFreqLog               = 14                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   283
            "intx Tier2InvokeNotifyFreqLog                 = 11                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   284
            "intx Tier3BackEdgeThreshold                   = 75000                                     {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   285
            "intx Tier3BackedgeNotifyFreqLog               = 13                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   286
            "intx Tier3CompileThreshold                    = 2500                                      {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   287
            "intx Tier3InvocationThreshold                 = 250                                       {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   288
            "intx Tier3InvokeNotifyFreqLog                 = 10                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   289
            "intx Tier3MinInvocationThreshold              = 125                                       {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   290
            "intx Tier4BackEdgeThreshold                   = 50000                                     {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   291
            "intx Tier4CompileThreshold                    = 18750                                     {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   292
            "intx Tier4InvocationThreshold                 = 6250                                      {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   293
            "intx Tier4MinInvocationThreshold              = 750                                       {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   294
            "double CompileThresholdScaling                  = 1.250000                                  {product} {command line}"
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   295
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   296
        {
49460
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   297
            "intx Tier0BackedgeNotifyFreqLog               = 11                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   298
            "intx Tier0InvokeNotifyFreqLog                 = 8                                         {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   299
            "intx Tier23InlineeNotifyFreqLog               = 21                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   300
            "intx Tier2BackedgeNotifyFreqLog               = 15                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   301
            "intx Tier2InvokeNotifyFreqLog                 = 12                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   302
            "intx Tier3BackEdgeThreshold                   = 120000                                    {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   303
            "intx Tier3BackedgeNotifyFreqLog               = 14                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   304
            "intx Tier3CompileThreshold                    = 4000                                      {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   305
            "intx Tier3InvocationThreshold                 = 400                                       {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   306
            "intx Tier3InvokeNotifyFreqLog                 = 11                                        {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   307
            "intx Tier3MinInvocationThreshold              = 200                                       {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   308
            "intx Tier4BackEdgeThreshold                   = 80000                                     {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   309
            "intx Tier4CompileThreshold                    = 30000                                     {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   310
            "intx Tier4InvocationThreshold                 = 10000                                     {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   311
            "intx Tier4MinInvocationThreshold              = 1200                                      {product} {command line, ergonomic}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   312
            "double CompileThresholdScaling                  = 2.000000                                  {product} {command line}"
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   313
        },
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   314
        {
49460
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   315
            "intx Tier0BackedgeNotifyFreqLog               = 10                                        {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   316
            "intx Tier0InvokeNotifyFreqLog                 = 7                                         {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   317
            "intx Tier23InlineeNotifyFreqLog               = 20                                        {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   318
            "intx Tier2BackedgeNotifyFreqLog               = 14                                        {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   319
            "intx Tier2InvokeNotifyFreqLog                 = 11                                        {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   320
            "intx Tier3BackEdgeThreshold                   = 60000                                     {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   321
            "intx Tier3BackedgeNotifyFreqLog               = 13                                        {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   322
            "intx Tier3CompileThreshold                    = 2000                                      {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   323
            "intx Tier3InvocationThreshold                 = 200                                       {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   324
            "intx Tier3InvokeNotifyFreqLog                 = 10                                        {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   325
            "intx Tier3MinInvocationThreshold              = 100                                       {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   326
            "intx Tier4BackEdgeThreshold                   = 40000                                     {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   327
            "intx Tier4CompileThreshold                    = 15000                                     {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   328
            "intx Tier4InvocationThreshold                 = 5000                                      {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   329
            "intx Tier4MinInvocationThreshold              = 600                                       {product} {command line}",
e786d01c47f2 8198608: Improvements to command-line flags printing
lucy
parents: 47216
diff changeset
   330
            "double CompileThresholdScaling                  = 0.000000                                  {product} {command line}",
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   331
            "interpreted mode"
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   332
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   333
    };
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   334
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   335
    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
   336
        ProcessBuilder pb;
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   337
        OutputAnalyzer out;
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
        pb = ProcessTools.createJavaProcessBuilder(arguments);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   340
        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
   341
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   342
        try {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   343
            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
   344
                out.shouldContain(expected_output);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   345
            }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   346
            out.shouldHaveExitValue(0);
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   347
        } catch (RuntimeException e) {
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   348
            // 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
   349
            // Version. Throw exception only if it is available.
37253
45e69c7b0bac 8152929: Remove UNSUPPORTED_GC_OPTION, use UNSUPPORTED_OPTION instead
pliden
parents: 30604
diff changeset
   350
            if (!(tiered && out.getOutput().contains("-XX:+TieredCompilation not supported in this VM"))) {
27148
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   351
                throw new RuntimeException(e);
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
    }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   355
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   356
    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
   357
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   358
        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
   359
            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
   360
        }
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
        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
   363
            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
   364
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   365
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   366
        // 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
   367
        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
   368
            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
   369
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   370
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   371
        // 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
   372
        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
   373
            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
   374
        }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   375
    }
a4b542d56e01 8059604: Add CompileThresholdScaling flag to control when methods are first compiled (with and withour TieredCompilation)
zmajo
parents:
diff changeset
   376
}