hotspot/test/testlibrary_tests/whitebox/vm_flags/DoubleTest.java
changeset 33163 9e128b399e48
parent 29678 dd2f3932c21e
child 33730 30e064828045
equal deleted inserted replaced
33162:342038b73996 33163:9e128b399e48
    34  * @author igor.ignatyev@oracle.com
    34  * @author igor.ignatyev@oracle.com
    35  */
    35  */
    36 
    36 
    37 public class DoubleTest {
    37 public class DoubleTest {
    38     private static final String FLAG_NAME = "CompileThresholdScaling";
    38     private static final String FLAG_NAME = "CompileThresholdScaling";
    39     private static final Double[] TESTS = {0d, -0d, -1d, 1d,
    39     private static final Double[] TESTS = {0d, -0d, 1d, Double.MAX_VALUE};
    40             Double.MAX_VALUE, Double.MIN_VALUE, Double.NaN,
       
    41             Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY};
       
    42 
    40 
    43     public static void main(String[] args) throws Exception {
    41     public static void main(String[] args) throws Exception {
    44         VmFlagTest.runTest(FLAG_NAME, TESTS,
    42         VmFlagTest.runTest(FLAG_NAME, TESTS,
    45             VmFlagTest.WHITE_BOX::setDoubleVMFlag,
    43             VmFlagTest.WHITE_BOX::setDoubleVMFlag,
    46             VmFlagTest.WHITE_BOX::getDoubleVMFlag);
    44             VmFlagTest.WHITE_BOX::getDoubleVMFlag);