hotspot/test/compiler/intrinsics/klass/CastNullCheckDroppingsTest.java
changeset 40631 ed82623d7831
parent 40067 db6c74a53556
child 43455 96560cffef4d
equal deleted inserted replaced
40629:514bf0744294 40631:ed82623d7831
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    24 /*
    24 /*
    25  * @test NullCheckDroppingsTest
    25  * @test NullCheckDroppingsTest
    26  * @bug 8054492
    26  * @bug 8054492
    27  * @summary Casting can result in redundant null checks in generated code
    27  * @summary Casting can result in redundant null checks in generated code
    28  * @requires vm.flavor == "server"
    28  * @requires vm.flavor == "server"
    29  * @library /testlibrary /test/lib
    29  * @library /test/lib
    30  * @modules java.base/jdk.internal.misc
    30  * @modules java.base/jdk.internal.misc
    31  *          java.management
    31  *          java.management
    32  *
    32  *
    33  * @build ClassFileInstaller sun.hotspot.WhiteBox jdk.test.lib.*
    33  * @build sun.hotspot.WhiteBox
    34  * @build compiler.intrinsics.klass.CastNullCheckDroppingsTest
       
    35  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
    34  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
    36  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
    35  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
    37  *                                jdk.test.lib.Platform
       
    38  * @run main/othervm -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
    36  * @run main/othervm -Xbootclasspath/a:. -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
    39  *                   -Xmixed -XX:-BackgroundCompilation -XX:-TieredCompilation -XX:CompileThreshold=1000
    37  *                   -Xmixed -XX:-BackgroundCompilation -XX:-TieredCompilation -XX:CompileThreshold=1000
    40  *                   -XX:CompileCommand=exclude,compiler.intrinsics.klass.CastNullCheckDroppingsTest::runTest
    38  *                   -XX:CompileCommand=exclude,compiler.intrinsics.klass.CastNullCheckDroppingsTest::runTest
    41  *                   compiler.intrinsics.klass.CastNullCheckDroppingsTest
    39  *                   compiler.intrinsics.klass.CastNullCheckDroppingsTest
    42  */
    40  */