File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
test/hotspot/jtreg/serviceability/sa Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ private static void startMeWithArgs() throws Exception {
7575 try {
7676 List <String > vmArgs = new ArrayList <String >();
7777 vmArgs .add ("-XX:+UsePerfData" );
78- vmArgs .addAll (Utils .getVmOptions ( ));
78+ vmArgs .addAll (Arrays . asList ( Utils .getTestJavaOpts () ));
7979 app = LingeredApp .startApp (vmArgs );
8080 System .out .println ("Started LingeredApp with pid " + app .getPid ());
8181 } catch (Exception ex ) {
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ private static void createAnotherToAttach(
116116 Integer .toString (lingeredAppPid )
117117 };
118118
119- // Start a new process to attach to the LingeredApp process
119+ // Start a new process to attach to the LingeredApp process to get SA info
120120 ProcessBuilder processBuilder = ProcessTools
121121 .createJavaProcessBuilder (toolArgs );
122122 OutputAnalyzer SAOutput = ProcessTools .executeProcess (processBuilder );
@@ -150,9 +150,7 @@ public static void main (String... args) throws Exception {
150150
151151 if (args == null || args .length == 0 ) {
152152 try {
153- List <String > vmArgs = new ArrayList <String >();
154- vmArgs .addAll (Utils .getVmOptions ());
155-
153+ List <String > vmArgs = Arrays .asList (Utils .getTestJavaOpts ());
156154 theApp = new LingeredAppWithInterface ();
157155 LingeredApp .startApp (vmArgs , theApp );
158156 createAnotherToAttach (instanceKlassNames ,
You can’t perform that action at this time.
0 commit comments