< prev index next >

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

Print this page

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












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

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