JDK-8221483 : TestOopCmp.java fails due to "Multiple garbage collectors selected"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11.0.4,13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-03-26
  • Updated: 2021-04-23
  • Resolved: 2019-03-26
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 12 JDK 13
11.0.4Fixed 12.0.2Fixed 13 b14Fixed
Related Reports
Relates :  
Description
The following test is failing in the JDK13 CI:

compiler/codegen/TestOopCmp.java

Here's a snippet from the log file:

#section:main
----------messages:(5/782)----------
command: main -Xbatch -XX:-UseTLAB -Xmx4m -XX:+UseSerialGC -XX:HeapBaseMinAddress=0x700000000 -XX:CompileCommand=compileonly,compiler.codegen.TestOopCmp::nullTest -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. compiler.codegen.TestOopCmp
reason: User specified action: run main/othervm -Xbatch -XX:-UseTLAB -Xmx4m -XX:+UseSerialGC -XX:HeapBaseMinAddress=0x700000000 -XX:CompileCommand=compileonly,compiler.codegen.TestOopCmp::nullTest -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. compiler.codegen.TestOopCmp 
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/jdk.internal.misc=ALL-UNNAMED
elapsed time (seconds): 0.014
----------configuration:(5/166)----------
Boot Layer
  add modules: java.base                   
  add exports: java.base/jdk.internal.misc ALL-UNNAMED
  add opens:   java.base/jdk.internal.misc ALL-UNNAMED

----------System.out:(2/80)----------
Error occurred during initialization of VM
Multiple garbage collectors selected
----------System.err:(1/147)----------
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
----------rerun:(44/7683)*----------
Comments
Fix request: Request fix approval for jdk12u and jdk11u. This test-only fix needs to go together with JDK-8221083. Risk is low. Patch applies cleanly after JDK-8221083.
29-03-2019

Add next to run only with Serial GC: * @requires vm.gc.Serial or if you want to run in tier1 which uses default G1: * @requires vm.gc.Serial | vm.gc.G1 | vm.gc == "null" and add flag: -XX:-UseG1GC
26-03-2019