JDK-8241273 : jdk/jfr/event/runtime/TestVMInfoEvent.java fails: Error occurred during initialization of VM Multiple garbage collectors selected
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 15
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2020-03-19
  • Updated: 2020-03-31
  • Resolved: 2020-03-31
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 15
15Resolved
Related Reports
Duplicate :  
Description
Specifying a GC on the command line leads to:

$ make run-test-only JTREG="VM_OPTIONS=-XX:+UseG1GC" TEST="jdk/jfr/event/runtime/TestVMInfoEvent.java"
...
ACTION: main -- Failed. Unexpected exit from test [exit code: 1]
REASON: User specified action: run main/othervm -XX:Flags=TestVMInfoEvent.flags -Xmx500m jdk.jfr.event.runtime.TestVMInfoEvent arg1 arg2 
TIME:   0.028 seconds
messages:
command: main -XX:Flags=TestVMInfoEvent.flags -Xmx500m jdk.jfr.event.runtime.TestVMInfoEvent arg1 arg2
reason: User specified action: run main/othervm -XX:Flags=TestVMInfoEvent.flags -Xmx500m jdk.jfr.event.runtime.TestVMInfoEvent arg1 arg2 
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.jfr,java.management
elapsed time (seconds): 0.028
configuration:
Boot Layer
  add modules: jdk.jfr java.management

STDOUT:
Error occurred during initialization of VM
Multiple garbage collectors selected