< prev index next >

test/compiler/arguments/CheckCompileThresholdScaling.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke


   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import jdk.test.lib.*;
  25 
  26 /*
  27  * @test CheckCompileThresholdScaling
  28  * @bug 8059604
  29  * @summary "Add CompileThresholdScaling flag to control when methods are first compiled (with +/-TieredCompilation)"
  30  * @library /testlibrary
  31  * @modules java.base/jdk.internal.misc
  32  *          java.management
  33  * @run main CheckCompileThresholdScaling
  34  */
  35 





  36 public class CheckCompileThresholdScaling {
  37 
  38     // The flag CompileThresholdScaling scales compilation thresholds
  39     // in the following way:
  40     //
  41     // - if CompileThresholdScaling==1.0, the default threshold values
  42     // are used;
  43     //
  44     // - if CompileThresholdScaling>1.0, threshold values are scaled
  45     // up (e.g., CompileThresholdScalingPercentage=1.2 scales up
  46     // thresholds by a factor of 1.2X);
  47     //
  48     // - if CompileThresholdScaling<1.0, threshold values are scaled
  49     // down;
  50     //
  51     // - if CompileThresholdScaling==0, compilation is disabled
  52     // (equivalent to using -Xint).
  53     //
  54     // With tiered compilation enabled, the values of the following
  55     // flags are changed:




   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 


  24 /*
  25  * @test CheckCompileThresholdScaling
  26  * @bug 8059604
  27  * @summary Add CompileThresholdScaling flag to control when methods are first compiled (with +/-TieredCompilation)
  28  * @library /testlibrary
  29  * @modules java.base/jdk.internal.misc
  30  *          java.management
  31  * @run driver compiler.arguments.CheckCompileThresholdScaling
  32  */
  33 
  34 package compiler.arguments;
  35 
  36 import jdk.test.lib.OutputAnalyzer;
  37 import jdk.test.lib.ProcessTools;
  38 
  39 public class CheckCompileThresholdScaling {
  40 
  41     // The flag CompileThresholdScaling scales compilation thresholds
  42     // in the following way:
  43     //
  44     // - if CompileThresholdScaling==1.0, the default threshold values
  45     // are used;
  46     //
  47     // - if CompileThresholdScaling>1.0, threshold values are scaled
  48     // up (e.g., CompileThresholdScalingPercentage=1.2 scales up
  49     // thresholds by a factor of 1.2X);
  50     //
  51     // - if CompileThresholdScaling<1.0, threshold values are scaled
  52     // down;
  53     //
  54     // - if CompileThresholdScaling==0, compilation is disabled
  55     // (equivalent to using -Xint).
  56     //
  57     // With tiered compilation enabled, the values of the following
  58     // flags are changed:


< prev index next >