Print this page
rev 6907 : 8056071: compiler/whitebox/IsMethodCompilableTest.java fails with 'method() is not compilable after 3 iterations'
Summary: Always use MDO if valid and always compile trivial methods with C1 if available.
Reviewed-by: kvn, iveresov

Split Split Close
Expand all
Collapse all
          --- old/hotspot/test/compiler/whitebox/IsMethodCompilableTest.java
          +++ new/hotspot/test/compiler/whitebox/IsMethodCompilableTest.java
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21   * questions.
  22   22   */
  23   23  
  24   24  /*
  25   25   * @test IsMethodCompilableTest
  26   26   * @bug 8007270 8006683 8007288 8022832
  27   27   * @library /testlibrary /testlibrary/whitebox /testlibrary/com/oracle/java/testlibrary
  28   28   * @build IsMethodCompilableTest
  29   29   * @run main ClassFileInstaller sun.hotspot.WhiteBox
  30   30   * @run main ClassFileInstaller com.oracle.java.testlibrary.Platform
  31      - * @run main/othervm/timeout=2400 -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:PerMethodRecompilationCutoff=3 -XX:CompileCommand=compileonly,SimpleTestCase$Helper::* IsMethodCompilableTest
       31 + * @run main/othervm/timeout=2400 -Xbootclasspath/a:. -Xmixed -XX:-TieredCompilation -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:PerMethodRecompilationCutoff=3 -XX:CompileCommand=compileonly,SimpleTestCase$Helper::* IsMethodCompilableTest
  32   32   * @summary testing of WB::isMethodCompilable()
  33   33   * @author igor.ignatyev@oracle.com
  34   34   */
  35   35  
  36   36  import com.oracle.java.testlibrary.Platform;
  37   37  
  38   38  public class IsMethodCompilableTest extends CompilerWhiteBoxTest {
  39   39      /**
  40   40       * Value of {@code -XX:PerMethodRecompilationCutoff}
  41   41       */
↓ open down ↓ 97 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX