< prev index next >

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

Print this page

565     /**
566      * Verifies that {@code m} was deoptimized after being C1 compiled.
567      *
568      * @param m the method to be checked.
569      * @throws TestRunException if {@code m} is was not deoptimized after being C1 compiled.
570      */
571     public static void assertDeoptimizedByC1(Method m) {
572         TestVM.assertDeoptimizedByC1(m);
573     }
574 
575     /**
576      * Verifies that {@code m} was deoptimized after being C2 compiled.
577      *
578      * @param m the method to be checked.
579      * @throws TestRunException if {@code m} is was not deoptimized after being C2 compiled.
580      */
581     public static void assertDeoptimizedByC2(Method m) {
582         TestVM.assertDeoptimizedByC2(m);
583     }
584 












585     /**
586      * Returns a different boolean each time this method is invoked (switching between {@code false} and {@code true}).
587      * The very first invocation returns {@code false}. Note that this method could be used by different tests and
588      * thus the first invocation for a test could be {@code true} or {@code false} depending on how many times
589      * other tests have already invoked this method.
590      *
591      * @return an inverted boolean of the result of the last invocation of this method.
592      */
593     public static boolean toggleBoolean() {
594         toggleBool = !toggleBool;
595         return toggleBool;
596     }
597 
598     /*
599      * End of public interface methods
600      */
601 
602     /**
603      * Used to move Whitebox class to the right folder in the JTreg test
604      */

565     /**
566      * Verifies that {@code m} was deoptimized after being C1 compiled.
567      *
568      * @param m the method to be checked.
569      * @throws TestRunException if {@code m} is was not deoptimized after being C1 compiled.
570      */
571     public static void assertDeoptimizedByC1(Method m) {
572         TestVM.assertDeoptimizedByC1(m);
573     }
574 
575     /**
576      * Verifies that {@code m} was deoptimized after being C2 compiled.
577      *
578      * @param m the method to be checked.
579      * @throws TestRunException if {@code m} is was not deoptimized after being C2 compiled.
580      */
581     public static void assertDeoptimizedByC2(Method m) {
582         TestVM.assertDeoptimizedByC2(m);
583     }
584 
585     /**
586      * Checks if deopt of {@code m} is stable at the specified {@code compLevel}.
587      *
588      * @param m the method to be checked.
589      * @param compLevel the compilation level.
590      * @return {@code true} if deopt of {@code m} is stable at {@code compLevel};
591      *         {@code false} otherwise.
592      */
593     public static boolean isStableDeopt(Method m, CompLevel compLevel) {
594         return TestVM.isStableDeopt(m, compLevel);
595     }
596 
597     /**
598      * Returns a different boolean each time this method is invoked (switching between {@code false} and {@code true}).
599      * The very first invocation returns {@code false}. Note that this method could be used by different tests and
600      * thus the first invocation for a test could be {@code true} or {@code false} depending on how many times
601      * other tests have already invoked this method.
602      *
603      * @return an inverted boolean of the result of the last invocation of this method.
604      */
605     public static boolean toggleBoolean() {
606         toggleBool = !toggleBool;
607         return toggleBool;
608     }
609 
610     /*
611      * End of public interface methods
612      */
613 
614     /**
615      * Used to move Whitebox class to the right folder in the JTreg test
616      */
< prev index next >