< prev index next >

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

Print this page

515     /**
516      * Verifies that {@code m} was deoptimized after being C1 compiled.
517      *
518      * @param m the method to be checked.
519      * @throws TestRunException if {@code m} is was not deoptimized after being C1 compiled.
520      */
521     public static void assertDeoptimizedByC1(Method m) {
522         TestVM.assertDeoptimizedByC1(m);
523     }
524 
525     /**
526      * Verifies that {@code m} was deoptimized after being C2 compiled.
527      *
528      * @param m the method to be checked.
529      * @throws TestRunException if {@code m} is was not deoptimized after being C2 compiled.
530      */
531     public static void assertDeoptimizedByC2(Method m) {
532         TestVM.assertDeoptimizedByC2(m);
533     }
534 












535     /**
536      * Returns a different boolean each time this method is invoked (switching between {@code false} and {@code true}).
537      * The very first invocation returns {@code false}. Note that this method could be used by different tests and
538      * thus the first invocation for a test could be {@code true} or {@code false} depending on how many times
539      * other tests have already invoked this method.
540      *
541      * @return an inverted boolean of the result of the last invocation of this method.
542      */
543     public static boolean toggleBoolean() {
544         toggleBool = !toggleBool;
545         return toggleBool;
546     }
547 
548     /*
549      * End of public interface methods
550      */
551 
552     /**
553      * Used to move Whitebox class to the right folder in the JTreg test
554      */

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