< prev index next >

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

Print this page

531     /**
532      * Verifies that {@code m} was deoptimized after being C1 compiled.
533      *
534      * @param m the method to be checked.
535      * @throws TestRunException if {@code m} is was not deoptimized after being C1 compiled.
536      */
537     public static void assertDeoptimizedByC1(Method m) {
538         TestVM.assertDeoptimizedByC1(m);
539     }
540 
541     /**
542      * Verifies that {@code m} was deoptimized after being C2 compiled.
543      *
544      * @param m the method to be checked.
545      * @throws TestRunException if {@code m} is was not deoptimized after being C2 compiled.
546      */
547     public static void assertDeoptimizedByC2(Method m) {
548         TestVM.assertDeoptimizedByC2(m);
549     }
550 












551     /**
552      * Returns a different boolean each time this method is invoked (switching between {@code false} and {@code true}).
553      * The very first invocation returns {@code false}. Note that this method could be used by different tests and
554      * thus the first invocation for a test could be {@code true} or {@code false} depending on how many times
555      * other tests have already invoked this method.
556      *
557      * @return an inverted boolean of the result of the last invocation of this method.
558      */
559     public static boolean toggleBoolean() {
560         toggleBool = !toggleBool;
561         return toggleBool;
562     }
563 
564     /*
565      * End of public interface methods
566      */
567 
568     /**
569      * Used to move Whitebox class to the right folder in the JTreg test
570      */

531     /**
532      * Verifies that {@code m} was deoptimized after being C1 compiled.
533      *
534      * @param m the method to be checked.
535      * @throws TestRunException if {@code m} is was not deoptimized after being C1 compiled.
536      */
537     public static void assertDeoptimizedByC1(Method m) {
538         TestVM.assertDeoptimizedByC1(m);
539     }
540 
541     /**
542      * Verifies that {@code m} was deoptimized after being C2 compiled.
543      *
544      * @param m the method to be checked.
545      * @throws TestRunException if {@code m} is was not deoptimized after being C2 compiled.
546      */
547     public static void assertDeoptimizedByC2(Method m) {
548         TestVM.assertDeoptimizedByC2(m);
549     }
550 
551     /**
552      * Checks if deopt of {@code m} is stable at the specified {@code compLevel}.
553      *
554      * @param m the method to be checked.
555      * @param compLevel the compilation level.
556      * @return {@code true} if deopt of {@code m} is stable at {@code compLevel};
557      *         {@code false} otherwise.
558      */
559     public static boolean isStableDeopt(Method m, CompLevel compLevel) {
560         return TestVM.isStableDeopt(m, compLevel);
561     }
562 
563     /**
564      * Returns a different boolean each time this method is invoked (switching between {@code false} and {@code true}).
565      * The very first invocation returns {@code false}. Note that this method could be used by different tests and
566      * thus the first invocation for a test could be {@code true} or {@code false} depending on how many times
567      * other tests have already invoked this method.
568      *
569      * @return an inverted boolean of the result of the last invocation of this method.
570      */
571     public static boolean toggleBoolean() {
572         toggleBool = !toggleBool;
573         return toggleBool;
574     }
575 
576     /*
577      * End of public interface methods
578      */
579 
580     /**
581      * Used to move Whitebox class to the right folder in the JTreg test
582      */
< prev index next >