mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8210515: [TESTBUG]CheckArchivedModuleApp.java needs to check if EnableJVMCI is set
System module objects are not archived when EnableJVMCI is set to true. Reviewed-by: iklam, ccheung
This commit is contained in:
parent
2702b5c299
commit
4baa5b10d1
2 changed files with 8 additions and 3 deletions
|
@ -47,8 +47,16 @@ public class CheckArchivedModuleApp {
|
|||
throw new RuntimeException(
|
||||
"FAILED. Incorrect argument length: " + args.length);
|
||||
}
|
||||
|
||||
boolean expectArchivedDescriptors = "yes".equals(args[0]);
|
||||
boolean expectArchivedConfiguration = "yes".equals(args[1]);
|
||||
// -XX:+EnableJVMCI adds extra system modules, in which case the system
|
||||
// module objects are not archived.
|
||||
if (wb.getBooleanVMFlag("EnableJVMCI")) {
|
||||
expectArchivedDescriptors = false;
|
||||
expectArchivedConfiguration = false;
|
||||
}
|
||||
|
||||
checkModuleDescriptors(expectArchivedDescriptors);
|
||||
checkConfiguration(expectArchivedConfiguration);
|
||||
checkEmptyConfiguration(expectArchivedConfiguration);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue