test/hotspot/jtreg/compiler/whitebox/DeoptimizeFramesTest.java
changeset 48002 0c88cd009b5f
parent 47216 71c04702a3d5
equal deleted inserted replaced
48001:600868bd3a8c 48002:0c88cd009b5f
    37  *                   -XX:+IgnoreUnrecognizedVMOptions -XX:-DeoptimizeRandom -XX:-DeoptimizeALot
    37  *                   -XX:+IgnoreUnrecognizedVMOptions -XX:-DeoptimizeRandom -XX:-DeoptimizeALot
    38  *                   compiler.whitebox.DeoptimizeFramesTest true
    38  *                   compiler.whitebox.DeoptimizeFramesTest true
    39  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
    39  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
    40  *                   -XX:+WhiteBoxAPI -Xmixed -XX:-UseCounterDecay
    40  *                   -XX:+WhiteBoxAPI -Xmixed -XX:-UseCounterDecay
    41  *                   -XX:CompileCommand=compileonly,compiler.whitebox.DeoptimizeFramesTest$TestCaseImpl::method
    41  *                   -XX:CompileCommand=compileonly,compiler.whitebox.DeoptimizeFramesTest$TestCaseImpl::method
       
    42  *                   -XX:CompileCommand=dontinline,java.util.concurrent.Phaser::*
    42  *                   -XX:+IgnoreUnrecognizedVMOptions -XX:-DeoptimizeRandom -XX:-DeoptimizeALot
    43  *                   -XX:+IgnoreUnrecognizedVMOptions -XX:-DeoptimizeRandom -XX:-DeoptimizeALot
    43  *                   compiler.whitebox.DeoptimizeFramesTest false
    44  *                   compiler.whitebox.DeoptimizeFramesTest false
    44  */
    45  */
    45 
    46 
    46 package compiler.whitebox;
    47 package compiler.whitebox;
   108             if (nm2 != null) {
   109             if (nm2 != null) {
   109                 Asserts.assertNE(nm.compile_id, nm2.compile_id,
   110                 Asserts.assertNE(nm.compile_id, nm2.compile_id,
   110                         String.format("compilation %d can't be available", nm.compile_id));
   111                         String.format("compilation %d can't be available", nm.compile_id));
   111             }
   112             }
   112         } else {
   113         } else {
       
   114             Asserts.assertNE(nm2, null, "must not be null");
   113             Asserts.assertEQ(nm.compile_id, nm2.compile_id, "should be the same nmethod");
   115             Asserts.assertEQ(nm.compile_id, nm2.compile_id, "should be the same nmethod");
   114         }
   116         }
   115     }
   117     }
   116 
   118 
   117 
   119