extended.openjdk compiler/tiered/Level2RecompilationTest.java fails on some platforms
- Dominant language
- HTML
- Stars
- 155
- Forks
- 346
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 36
Description
extended.openjdk hotspot_jre compiler/tiered/Level2RecompilationTest.java fails on the following platforms / releases:
```
jdk8: arm_linux, ppc_aix, ppcle64_linux. x86-32_windows
jdk11: x86-32_windows
```
The output is similar in all cases:
```
[2021-06-19T12:52:00.496Z] command: main -Xbootclasspath/a:. -XX:+TieredCompilation -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-UseCounterDecay -XX:CompileCommand=compileonly,SimpleTestCase$Helper::* -XX:CompileCommand=print,SimpleTestCase$Helper::* Level2RecompilationTest
[2021-06-19T12:52:00.496Z] reason: User specified action: run main/othervm -Xbootclasspath/a:. -XX:+TieredCompilation -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:-UseCounterDecay -XX:CompileCommand=compileonly,SimpleTestCase$Helper::* -XX:CompileCommand=print,SimpleTestCase$Helper::* Level2RecompilationTest
[2021-06-19T12:52:00.496Z] Mode: othervm [/othervm specified]
[2021-06-19T12:52:00.496Z] elapsed time (seconds): 1.915
[2021-06-19T12:52:00.496Z] configuration:
[2021-06-19T12:52:00.496Z] STDOUT:
[2021-06-19T12:52:00.496Z] CompilerOracle: compileonly SimpleTestCase$Helper.*
[2021-06-19T12:52:00.496Z] CompilerOracle: print SimpleTestCase$Helper.*
[2021-06-19T12:52:00.496Z] STDERR:
[2021-06-19T12:52:00.496Z] OpenJDK 64-Bit Server VM warning: TieredCompilation is disabled in this release.
[2021-06-19T12:52:00.496Z] OpenJDK 64-Bit Server VM warning: printing of assembly code is enabled; turning on DebugNonSafepoints to gain additional output
[2021-06-19T12:52:00.496Z] Test isn't applicable w/ disabledTieredCompilation. Skip test.
[2021-06-19T12:52:00.496Z] java.lang.RuntimeException: Test isn't applicable for non-tiered mode
[2021-06-19T12:52:00.496Z] at Level2RecompilationTest.main(Level2RecompilationTest.java:39)
[2021-06-19T12:52:00.496Z] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2021-06-19T12:52:00.496Z] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2021-06-19T12:52:00.496Z] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2021-06-19T12:52:00.496Z] at java.lang.reflect.Method.invoke(Method.java:498)
[2021-06-19T12:52:00.496Z] at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2021-06-19T12:52:00.496Z] at java.lang.Thread.run(Thread.java:748)
[2021-06-19T12:52:00.496Z]
[2021-06-19T12:52:00.496Z] JavaTest Message: Test threw exception: java.lang.RuntimeException: Test isn't applicable for non-tiered mode
[2021-06-19T12:52:00.496Z] JavaTest Message: shutting down test
[2021-06-19T12:52:00.496Z]
[2021-06-19T12:52:00.496Z] STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test isn't applicable for non-tiered mode
```
I assume 'Tiered compilation' is not valid on these platforms?
Contributor guide
Research direction
Start with extended.openjdk hotspot_jre compiler/tiered/Level2RecompilationTest.java, especially the failure at line 39, and compare its behavior on the listed JDK and platform combinations. Run the test with the shown tiered-compilation options and determine the appropriate handling for releases where tiered compilation is disabled. Done means the affected configurations no longer report an inappropriate failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- compilers, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100