8212154: [TESTBUG] CheckArchivedModuleApp fails with NPE when JVMCI is absent
Added a null check on wb.getBooleanVMFlag("EnableJVMCI"). Reviewed-by: hseigel, jiangli
This commit is contained in:
parent
93395f6a9e
commit
efce2c0397
@ -52,7 +52,8 @@ public class CheckArchivedModuleApp {
|
||||
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")) {
|
||||
Boolean enableJVMCI = wb.getBooleanVMFlag("EnableJVMCI");
|
||||
if (enableJVMCI != null && enableJVMCI) {
|
||||
expectArchivedDescriptors = false;
|
||||
expectArchivedConfiguration = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user