< prev index next >

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

Print this page

542     /**
543      * Verifies that {@code m} was deoptimized after being C1 compiled.
544      *
545      * @param m the method to be checked.
546      * @throws TestRunException if {@code m} is was not deoptimized after being C1 compiled.
547      */
548     public static void assertDeoptimizedByC1(Method m) {
549         TestVM.assertDeoptimizedByC1(m);
550     }
551 
552     /**
553      * Verifies that {@code m} was deoptimized after being C2 compiled.
554      *
555      * @param m the method to be checked.
556      * @throws TestRunException if {@code m} is was not deoptimized after being C2 compiled.
557      */
558     public static void assertDeoptimizedByC2(Method m) {
559         TestVM.assertDeoptimizedByC2(m);
560     }
561 












562     /**
563      * Returns a different boolean each time this method is invoked (switching between {@code false} and {@code true}).
564      * The very first invocation returns {@code false}. Note that this method could be used by different tests and
565      * thus the first invocation for a test could be {@code true} or {@code false} depending on how many times
566      * other tests have already invoked this method.
567      *
568      * @return an inverted boolean of the result of the last invocation of this method.
569      */
570     public static boolean toggleBoolean() {
571         toggleBool = !toggleBool;
572         return toggleBool;
573     }
574 
575     /*
576      * End of public interface methods
577      */
578 
579     /**
580      * Used to move Whitebox class to the right folder in the JTreg test
581      */

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