equal
deleted
inserted
replaced
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); |