JDK-8231503 : [TESTBUG] compiler/{jvmci,aot} tests should not run with GCs that do not support JVMCI/AOT
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-09-26
  • Updated: 2022-06-27
  • Resolved: 2019-10-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14
11.0.6-oracleFixed 13.0.4Fixed 14 b17Fixed
Related Reports
Relates :  
Description
Currently, trying to run tier1 with either +UseShenandoahGC or +UseZGC would fail, because compiler/aot would try to run and fail. These tests should be more resilient and skipped when unsupported GC is selected.

For example:

$ CONF=linux-x86_64-server-fastdebug make images test TEST=compiler/aot/ TEST_VM_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC"
...
OpenJDK 64-Bit Server VM warning: Shenandoah does not support AOT at this moment, disabling UseAOT
Error occurred during initialization of VM
JVMCI Compiler does not support selected GC: shenandoah gc

Those tests already have:
  * @requires vm.aot

...maybe we should either extend this with listing unsupported collectors, or disable vm.aot when specific GC is enabled.
Comments
Fix Request (13u) Backporting this testbug fix allows simpler GC testing. Patch applies cleanly to 11u, passes tier1 tests.
27-05-2020

Fix Request (11u) Backporting this testbug fix allows simpler GC testing. Patch applies cleanly to 11u, passes tier1, tier2 tests. Running compiler/{jvmci,aot} with ZGC used to fail on affected tests, now it passes. Running compiler/{jvmci,aot} with Parallel passes like before.
14-10-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/9b644c06226f User: shade Date: 2019-10-01 13:42:01 +0000
01-10-2019

RFR/RFC: https://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2019-September/035235.html
27-09-2019

ILW = Tests fail due to unsupported GC, compiler/aot tests with Shenandoah or ZGC, no workaround = MLH = P4
27-09-2019