test/testlibrary_tests/whitebox/vm_flags/DoubleTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8078554 Sdiff test/testlibrary_tests/whitebox/vm_flags

test/testlibrary_tests/whitebox/vm_flags/DoubleTest.java

Print this page




  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 DoubleTest
  26  * @bug 8028756
  27  * @library /testlibrary /../../test/lib
  28  * @modules java.management/sun.management
  29  * @build DoubleTest
  30  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  31  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  32  * @run main/othervm/timeout=600 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI DoubleTest
  33  * @summary testing of WB::set/getDoubleVMFlag()
  34  * @author igor.ignatyev@oracle.com
  35  */
  36 
  37 public class DoubleTest {
  38     private static final String FLAG_NAME = "CompileThresholdScaling";
  39     private static final Double[] TESTS = {0d, -0d, -1d, 1d,
  40             Double.MAX_VALUE, Double.MIN_VALUE, Double.NaN,
  41             Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY};
  42 
  43     public static void main(String[] args) throws Exception {
  44         VmFlagTest.runTest(FLAG_NAME, TESTS,
  45             VmFlagTest.WHITE_BOX::setDoubleVMFlag,
  46             VmFlagTest.WHITE_BOX::getDoubleVMFlag);
  47     }
  48 }
  49 


  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 DoubleTest
  26  * @bug 8028756
  27  * @library /testlibrary /../../test/lib
  28  * @modules java.management/sun.management
  29  * @build DoubleTest
  30  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  31  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  32  * @run main/othervm/timeout=600 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI DoubleTest
  33  * @summary testing of WB::set/getDoubleVMFlag()
  34  * @author igor.ignatyev@oracle.com
  35  */
  36 
  37 public class DoubleTest {
  38     private static final String FLAG_NAME = "CompileThresholdScaling";
  39     private static final Double[] TESTS = {0d, -0d, 1d, Double.MAX_VALUE};


  40 
  41     public static void main(String[] args) throws Exception {
  42         VmFlagTest.runTest(FLAG_NAME, TESTS,
  43             VmFlagTest.WHITE_BOX::setDoubleVMFlag,
  44             VmFlagTest.WHITE_BOX::getDoubleVMFlag);
  45     }
  46 }
  47 
test/testlibrary_tests/whitebox/vm_flags/DoubleTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File