< prev index next >

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

Print this page

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












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

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