Skip to content

Commit

Permalink
8260878: com/sun/jdi/JdbOptions.java fails without jfr
Browse files Browse the repository at this point in the history
Backport-of: a47befc
  • Loading branch information
luchenlin authored and GoeLin committed Jun 27, 2023
1 parent 193dc76 commit ccbb928
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/jdk/com/sun/jdi/JdbOptions.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -96,6 +96,7 @@ public static void main(String[] args) throws Exception {
// 'options' contains commas - values are quoted (double quotes)
test("-connect",
"com.sun.jdi.CommandLineLaunch:vmexec=java,options=\"-client\" \"-XX:+PrintVMOptions\""
+ " -XX:+IgnoreUnrecognizedVMOptions"
+ " \"-XX:StartFlightRecording=dumponexit=true,maxsize=500M\" \"-XX:FlightRecorderOptions=repository=jfrrep\""
+ ",main=" + targ)
.expectedArg("-XX:StartFlightRecording=dumponexit=true,maxsize=500M")
Expand All @@ -104,6 +105,7 @@ public static void main(String[] args) throws Exception {
// 'options' contains commas - values are quoted (single quotes)
test("-connect",
"com.sun.jdi.CommandLineLaunch:vmexec=java,options='-client' '-XX:+PrintVMOptions'"
+ " -XX:+IgnoreUnrecognizedVMOptions"
+ " '-XX:StartFlightRecording=dumponexit=true,maxsize=500M' '-XX:FlightRecorderOptions=repository=jfrrep'"
+ ",main=" + targ)
.expectedArg("-XX:StartFlightRecording=dumponexit=true,maxsize=500M")
Expand All @@ -115,6 +117,7 @@ public static void main(String[] args) throws Exception {
"-Dprop2=val 2",
"-connect",
"com.sun.jdi.CommandLineLaunch:vmexec=java,options=-Dprop3=val3 '-Dprop4=val 4'"
+ " -XX:+IgnoreUnrecognizedVMOptions"
+ " \"-XX:StartFlightRecording=dumponexit=true,maxsize=500M\""
+ " '-XX:FlightRecorderOptions=repository=jfrrep'"
+ ",main=" + targ + " prop1 prop2 prop3 prop4")
Expand Down

1 comment on commit ccbb928

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.