hotspot/test/compiler/codecache/stress/UnexpectedDeoptimizationTest.java
changeset 40059 c2304140ed64
parent 36851 03e2f4d0a421
child 40338 d92668bfe3e8
equal deleted inserted replaced
40058:b4441f6cfe79 40059:c2304140ed64
    22  *
    22  *
    23  */
    23  */
    24 
    24 
    25 /*
    25 /*
    26  * @test UnexpectedDeoptimizationTest
    26  * @test UnexpectedDeoptimizationTest
    27  * @library /testlibrary /test/lib
    27  * @summary stressing code cache by forcing unexpected deoptimizations
       
    28  * @library /testlibrary /test/lib /
    28  * @modules java.base/jdk.internal.misc
    29  * @modules java.base/jdk.internal.misc
    29  *          java.management
    30  *          java.management
    30  * @build UnexpectedDeoptimizationTest
    31  *
    31  * @run main ClassFileInstaller sun.hotspot.WhiteBox
    32  * @build compiler.codecache.stress.UnexpectedDeoptimizationTest
    32  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
    33  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
       
    34  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
    33  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
    35  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
    34  *                   -XX:CompileCommand=dontinline,Helper$TestCase::method
    36  *                   -XX:+WhiteBoxAPI -XX:-DeoptimizeRandom
    35  *                   -XX:+WhiteBoxAPI -XX:-SegmentedCodeCache -XX:-DeoptimizeRandom
    37  *                   -XX:CompileCommand=dontinline,compiler.codecache.stress.Helper$TestCase::method
    36  *                   UnexpectedDeoptimizationTest
    38  *                   -XX:-SegmentedCodeCache
       
    39  *                   compiler.codecache.stress.UnexpectedDeoptimizationTest
    37  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
    40  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
    38  *                   -XX:CompileCommand=dontinline,Helper$TestCase::method
    41  *                   -XX:+WhiteBoxAPI -XX:-DeoptimizeRandom
    39  *                   -XX:+WhiteBoxAPI -XX:+SegmentedCodeCache -XX:-DeoptimizeRandom
    42  *                   -XX:CompileCommand=dontinline,compiler.codecache.stress.Helper$TestCase::method
    40  *                   UnexpectedDeoptimizationTest
    43  *                   -XX:+SegmentedCodeCache
    41  * @summary stressing code cache by forcing unexpected deoptimizations
    44  *                   compiler.codecache.stress.UnexpectedDeoptimizationTest
    42  */
    45  */
       
    46 
       
    47 package compiler.codecache.stress;
       
    48 
    43 public class UnexpectedDeoptimizationTest implements Runnable {
    49 public class UnexpectedDeoptimizationTest implements Runnable {
    44 
    50 
    45     public static void main(String[] args) {
    51     public static void main(String[] args) {
    46         new CodeCacheStressRunner(new UnexpectedDeoptimizationTest()).runTest();
    52         new CodeCacheStressRunner(new UnexpectedDeoptimizationTest()).runTest();
    47     }
    53     }