Print this page
rev 6860 : 8046268: compiler/whitebox/ tests fail : must be osr_compiled
Summary: Added code to 'warm up' the methods before triggering OSR compilation by executing them a limited number of times. Like this, the profile information marks the loop exit as taken and we don't add an uncommon trap.
Reviewed-by: kvn, dlong, iignatyev
rev 6863 : 8061983: [TESTBUG] compiler/whitebox/MakeMethodNotCompilableTest.java fails with "must not be in queue"
Summary: Added a method checkNotCompiled(boolean isOsr) to either check if the method is OSR compiled or to check if it is non-OSR compiled.
Reviewed-by: kvn

Split Split Close
Expand all
Collapse all
          --- old/test/compiler/whitebox/MakeMethodNotCompilableTest.java
          +++ new/test/compiler/whitebox/MakeMethodNotCompilableTest.java
↓ open down ↓ 123 lines elided ↑ open up ↑
 124  124              }
 125  125          }
 126  126  
 127  127          // clearing after tiered/non-tiered tests
 128  128          // WB.clearMethodState() must reset no-compilable flags
 129  129          WHITE_BOX.clearMethodState(method);
 130  130          if (!isCompilable()) {
 131  131              throw new RuntimeException(method
 132  132                      + " is not compilable after clearMethodState()");
 133  133          }
 134      -
      134 +        // Make method not (OSR-)compilable (depending on testCase.isOsr())
 135  135          makeNotCompilable();
 136  136          if (isCompilable()) {
 137  137              throw new RuntimeException(method + " must be not compilable");
 138  138          }
 139      -
      139 +        // Try to (OSR-)compile method
 140  140          compile();
 141      -        checkNotCompiled();
      141 +        // Method should not be (OSR-)compiled
      142 +        checkNotCompiled(testCase.isOsr());
 142  143          if (isCompilable()) {
 143  144              throw new RuntimeException(method + " must be not compilable");
 144  145          }
 145  146          // WB.clearMethodState() must reset no-compilable flags
 146  147          WHITE_BOX.clearMethodState(method);
 147  148          if (!isCompilable()) {
 148  149              throw new RuntimeException(method
 149  150                      + " is not compilable after clearMethodState()");
 150  151          }
 151  152          compile();
↓ open down ↓ 72 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX