< prev index next >

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

Print this page

637     /**
638      * Verifies that {@code m} was deoptimized after being C1 compiled.
639      *
640      * @param m the method to be checked.
641      * @throws TestRunException if {@code m} is was not deoptimized after being C1 compiled.
642      */
643     public static void assertDeoptimizedByC1(Method m) {
644         TestVM.assertDeoptimizedByC1(m);
645     }
646 
647     /**
648      * Verifies that {@code m} was deoptimized after being C2 compiled.
649      *
650      * @param m the method to be checked.
651      * @throws TestRunException if {@code m} is was not deoptimized after being C2 compiled.
652      */
653     public static void assertDeoptimizedByC2(Method m) {
654         TestVM.assertDeoptimizedByC2(m);
655     }
656 












657     /**
658      * Returns a different boolean each time this method is invoked (switching between {@code false} and {@code true}).
659      * The very first invocation returns {@code false}. Note that this method could be used by different tests and
660      * thus the first invocation for a test could be {@code true} or {@code false} depending on how many times
661      * other tests have already invoked this method.
662      *
663      * @return an inverted boolean of the result of the last invocation of this method.
664      */
665     public static boolean toggleBoolean() {
666         toggleBool = !toggleBool;
667         return toggleBool;
668     }
669 
670     /*
671      * End of public interface methods
672      */
673 
674     /**
675      * Used to move Whitebox class to the right folder in the JTreg test
676      */

637     /**
638      * Verifies that {@code m} was deoptimized after being C1 compiled.
639      *
640      * @param m the method to be checked.
641      * @throws TestRunException if {@code m} is was not deoptimized after being C1 compiled.
642      */
643     public static void assertDeoptimizedByC1(Method m) {
644         TestVM.assertDeoptimizedByC1(m);
645     }
646 
647     /**
648      * Verifies that {@code m} was deoptimized after being C2 compiled.
649      *
650      * @param m the method to be checked.
651      * @throws TestRunException if {@code m} is was not deoptimized after being C2 compiled.
652      */
653     public static void assertDeoptimizedByC2(Method m) {
654         TestVM.assertDeoptimizedByC2(m);
655     }
656 
657     /**
658      * Checks if deopt of {@code m} is stable at the specified {@code compLevel}.
659      *
660      * @param m the method to be checked.
661      * @param compLevel the compilation level.
662      * @return {@code true} if deopt of {@code m} is stable at {@code compLevel};
663      *         {@code false} otherwise.
664      */
665     public static boolean isStableDeopt(Method m, CompLevel compLevel) {
666         return TestVM.isStableDeopt(m, compLevel);
667     }
668 
669     /**
670      * Returns a different boolean each time this method is invoked (switching between {@code false} and {@code true}).
671      * The very first invocation returns {@code false}. Note that this method could be used by different tests and
672      * thus the first invocation for a test could be {@code true} or {@code false} depending on how many times
673      * other tests have already invoked this method.
674      *
675      * @return an inverted boolean of the result of the last invocation of this method.
676      */
677     public static boolean toggleBoolean() {
678         toggleBool = !toggleBool;
679         return toggleBool;
680     }
681 
682     /*
683      * End of public interface methods
684      */
685 
686     /**
687      * Used to move Whitebox class to the right folder in the JTreg test
688      */
< prev index next >