< prev index next >

test/hotspot/jtreg/compiler/lib/ir_framework/TestFramework.java

Print this page

485     /**
486      * Verifies that {@code m} was deoptimized after being C1 compiled.
487      *
488      * @param m the method to be checked.
489      * @throws TestRunException if {@code m} is was not deoptimized after being C1 compiled.
490      */
491     public static void assertDeoptimizedByC1(Method m) {
492         TestVM.assertDeoptimizedByC1(m);
493     }
494 
495     /**
496      * Verifies that {@code m} was deoptimized after being C2 compiled.
497      *
498      * @param m the method to be checked.
499      * @throws TestRunException if {@code m} is was not deoptimized after being C2 compiled.
500      */
501     public static void assertDeoptimizedByC2(Method m) {
502         TestVM.assertDeoptimizedByC2(m);
503     }
504 












505     /**
506      * Returns a different boolean each time this method is invoked (switching between {@code false} and {@code true}).
507      * The very first invocation returns {@code false}. Note that this method could be used by different tests and
508      * thus the first invocation for a test could be {@code true} or {@code false} depending on how many times
509      * other tests have already invoked this method.
510      *
511      * @return an inverted boolean of the result of the last invocation of this method.
512      */
513     public static boolean toggleBoolean() {
514         toggleBool = !toggleBool;
515         return toggleBool;
516     }
517 
518     /*
519      * End of public interface methods
520      */
521 
522     /**
523      * Used to move Whitebox class to the right folder in the JTreg test
524      */

485     /**
486      * Verifies that {@code m} was deoptimized after being C1 compiled.
487      *
488      * @param m the method to be checked.
489      * @throws TestRunException if {@code m} is was not deoptimized after being C1 compiled.
490      */
491     public static void assertDeoptimizedByC1(Method m) {
492         TestVM.assertDeoptimizedByC1(m);
493     }
494 
495     /**
496      * Verifies that {@code m} was deoptimized after being C2 compiled.
497      *
498      * @param m the method to be checked.
499      * @throws TestRunException if {@code m} is was not deoptimized after being C2 compiled.
500      */
501     public static void assertDeoptimizedByC2(Method m) {
502         TestVM.assertDeoptimizedByC2(m);
503     }
504 
505     /**
506      * Checks if deopt of {@code m} is stable at the specified {@code compLevel}.
507      *
508      * @param m the method to be checked.
509      * @param compLevel the compilation level.
510      * @return {@code true} if deopt of {@code m} is stable at {@code compLevel};
511      *         {@code false} otherwise.
512      */
513     public static boolean isStableDeopt(Method m, CompLevel compLevel) {
514         return TestVM.isStableDeopt(m, compLevel);
515     }
516 
517     /**
518      * Returns a different boolean each time this method is invoked (switching between {@code false} and {@code true}).
519      * The very first invocation returns {@code false}. Note that this method could be used by different tests and
520      * thus the first invocation for a test could be {@code true} or {@code false} depending on how many times
521      * other tests have already invoked this method.
522      *
523      * @return an inverted boolean of the result of the last invocation of this method.
524      */
525     public static boolean toggleBoolean() {
526         toggleBool = !toggleBool;
527         return toggleBool;
528     }
529 
530     /*
531      * End of public interface methods
532      */
533 
534     /**
535      * Used to move Whitebox class to the right folder in the JTreg test
536      */
< prev index next >