Description
The test com/sun/jdi/JdbOptions.java added by https://bugs.openjdk.java.net/browse/JDK-8234808 fails on platforms that do not have JFR (i.e. AIX).
The test uses JFR options to test that quoted option parsing works. On non JFR platforms this fails because the VM cannot start.
Output:
[jdb] VM start exception: VM initialization failed for: /.../bin/java -client -XX:+PrintVMOptions -XX:StartFlightRecording=dumponexit=true,maxsize=500M -XX:FlightRecorderOptions=repository=jfrrep -Xdebug -Xrunjdwp:transport=dt_socket,address=localhost:38090,suspend=y JbdOptionsTarg
[jdb]
[jdb] Unrecognized VM option 'StartFlightRecording=dumponexit=true,maxsize=500M'
[jdb] Error: Could not create the Java Virtual Machine.
[jdb] Error: A fatal exception has occurred. Program will exit.
[jdb] VM option '+PrintVMOptions'
[jdb] VM option 'StartFlightRecording=dumponexit=true,maxsize=500M'
[jdb] VM option 'FlightRecorderOptions=repository=jfrrep'
[jdb]
[jdb] Fatal error:
[jdb] Target VM failed to initialize.
The test uses JFR options to test that quoted option parsing works. On non JFR platforms this fails because the VM cannot start.
Output:
[jdb] VM start exception: VM initialization failed for: /.../bin/java -client -XX:+PrintVMOptions -XX:StartFlightRecording=dumponexit=true,maxsize=500M -XX:FlightRecorderOptions=repository=jfrrep -Xdebug -Xrunjdwp:transport=dt_socket,address=localhost:38090,suspend=y JbdOptionsTarg
[jdb]
[jdb] Unrecognized VM option 'StartFlightRecording=dumponexit=true,maxsize=500M'
[jdb] Error: Could not create the Java Virtual Machine.
[jdb] Error: A fatal exception has occurred. Program will exit.
[jdb] VM option '+PrintVMOptions'
[jdb] VM option 'StartFlightRecording=dumponexit=true,maxsize=500M'
[jdb] VM option 'FlightRecorderOptions=repository=jfrrep'
[jdb]
[jdb] Fatal error:
[jdb] Target VM failed to initialize.
Attachments
Issue Links
- duplicates
-
JDK-8260878 com/sun/jdi/JdbOptions.java fails without jfr
- Resolved