@@ -169,15 +169,15 @@ public static OutputAnalyzer dumpBaseArchive(String baseArchiveName, String clas
169
169
// Create AppCDS archive using most common args - convenience method
170
170
public static OutputAnalyzer createArchive (String appJar , String classList [],
171
171
String ... suffix ) throws Exception {
172
- AppCDSOptions opts = (new AppCDSOptions ()).setAppJar (appJar );
172
+ CDSOptions opts = (new CDSOptions ()).setAppJar (appJar );
173
173
opts .setClassList (classList );
174
174
opts .addSuffix (suffix );
175
175
return createArchive (opts );
176
176
}
177
177
178
178
public static OutputAnalyzer createArchive (String appJarDir , String appJar , String classList [],
179
179
String ... suffix ) throws Exception {
180
- AppCDSOptions opts = (new AppCDSOptions ()).setAppJar (appJar );
180
+ CDSOptions opts = (new CDSOptions ()).setAppJar (appJar );
181
181
opts .setAppJarDir (appJarDir );
182
182
opts .setClassList (classList );
183
183
opts .addSuffix (suffix );
@@ -207,7 +207,7 @@ private static void captureVerifyOpts(ArrayList<String> opts, ArrayList<String>
207
207
}
208
208
209
209
// Create AppCDS archive using appcds options
210
- public static OutputAnalyzer createArchive (AppCDSOptions opts )
210
+ public static OutputAnalyzer createArchive (CDSOptions opts )
211
211
throws Exception {
212
212
ArrayList <String > cmd = new ArrayList <String >();
213
213
ArrayList <String > verifyOpts = new ArrayList <String >();
@@ -407,8 +407,8 @@ private static void patchJarForDynamicDump(String cp) throws Exception {
407
407
}
408
408
}
409
409
410
- // Execute JVM using AppCDS archive with specified AppCDSOptions
411
- public static OutputAnalyzer runWithArchive (AppCDSOptions opts )
410
+ // Execute JVM using AppCDS archive with specified CDSOptions
411
+ public static OutputAnalyzer runWithArchive (CDSOptions opts )
412
412
throws Exception {
413
413
414
414
ArrayList <String > cmd = opts .getRuntimePrefix ();
@@ -451,61 +451,61 @@ public static OutputAnalyzer runWithArchive(AppCDSOptions opts)
451
451
452
452
453
453
public static OutputAnalyzer execCommon (String ... suffix ) throws Exception {
454
- AppCDSOptions opts = (new AppCDSOptions ());
454
+ CDSOptions opts = (new CDSOptions ());
455
455
opts .addSuffix (suffix );
456
456
return runWithArchive (opts );
457
457
}
458
458
459
459
// This is the new API for running a Java process with CDS enabled.
460
460
// See comments in the CDSTestUtils.Result class for how to use this method.
461
461
public static Result run (String ... suffix ) throws Exception {
462
- AppCDSOptions opts = (new AppCDSOptions ());
462
+ CDSOptions opts = (new CDSOptions ());
463
463
opts .addSuffix (suffix );
464
464
return new Result (opts , runWithArchive (opts ));
465
465
}
466
466
467
467
public static Result runWithoutCDS (String ... suffix ) throws Exception {
468
- AppCDSOptions opts = (new AppCDSOptions ());
468
+ CDSOptions opts = (new CDSOptions ());
469
469
opts .addSuffix (suffix ).setXShareMode ("off" );
470
470
return new Result (opts , runWithArchive (opts ));
471
471
}
472
472
473
473
public static Result runWithRelativePath (String jarDir , String ... suffix ) throws Exception {
474
- AppCDSOptions opts = (new AppCDSOptions ());
474
+ CDSOptions opts = (new CDSOptions ());
475
475
opts .setAppJarDir (jarDir );
476
476
opts .addSuffix (suffix );
477
477
return new Result (opts , runWithArchive (opts ));
478
478
}
479
479
480
480
public static OutputAnalyzer exec (String appJar , String ... suffix ) throws Exception {
481
- AppCDSOptions opts = (new AppCDSOptions ()).setAppJar (appJar );
481
+ CDSOptions opts = (new CDSOptions ()).setAppJar (appJar );
482
482
opts .addSuffix (suffix );
483
483
return runWithArchive (opts );
484
484
}
485
485
486
486
public static Result runWithModules (String prefix [], String upgrademodulepath , String modulepath ,
487
487
String mid , String ... testClassArgs ) throws Exception {
488
- AppCDSOptions opts = makeModuleOptions (prefix , upgrademodulepath , modulepath ,
488
+ CDSOptions opts = makeModuleOptions (prefix , upgrademodulepath , modulepath ,
489
489
mid , testClassArgs );
490
490
return new Result (opts , runWithArchive (opts ));
491
491
}
492
492
493
493
public static OutputAnalyzer execAuto (String ... suffix ) throws Exception {
494
- AppCDSOptions opts = (new AppCDSOptions ());
494
+ CDSOptions opts = (new CDSOptions ());
495
495
opts .addSuffix (suffix ).setXShareMode ("auto" );
496
496
return runWithArchive (opts );
497
497
}
498
498
499
499
public static OutputAnalyzer execOff (String ... suffix ) throws Exception {
500
- AppCDSOptions opts = (new AppCDSOptions ());
500
+ CDSOptions opts = (new CDSOptions ());
501
501
opts .addSuffix (suffix ).setXShareMode ("off" );
502
502
return runWithArchive (opts );
503
503
}
504
504
505
505
506
- private static AppCDSOptions makeModuleOptions (String prefix [], String upgrademodulepath , String modulepath ,
506
+ private static CDSOptions makeModuleOptions (String prefix [], String upgrademodulepath , String modulepath ,
507
507
String mid , String testClassArgs []) {
508
- AppCDSOptions opts = (new AppCDSOptions ());
508
+ CDSOptions opts = (new CDSOptions ());
509
509
510
510
opts .addPrefix (prefix );
511
511
if (upgrademodulepath == null ) {
@@ -521,7 +521,7 @@ private static AppCDSOptions makeModuleOptions(String prefix[], String upgrademo
521
521
public static OutputAnalyzer execModule (String prefix [], String upgrademodulepath , String modulepath ,
522
522
String mid , String ... testClassArgs )
523
523
throws Exception {
524
- AppCDSOptions opts = makeModuleOptions (prefix , upgrademodulepath , modulepath ,
524
+ CDSOptions opts = makeModuleOptions (prefix , upgrademodulepath , modulepath ,
525
525
mid , testClassArgs );
526
526
return runWithArchive (opts );
527
527
}
0 commit comments