When -XX:+EnableJVMCI is used, extra modules are added. As a result, the system module objects are not archived with -XX:+EnableJVMCI. CheckArchivedModuleApp.java needs to consult UseJVMCICompiler flag and check archived system modules accordingly.
JDK-8243552[TESTBUG]CheckArchivedModuleApp.java needs to check if EnableJVMCI is set
JDK-8209534[TESTBUG]runtime/appcds/cacheObject/ArchivedModuleCompareTest.java fails with EnableJVMCI
JDK-8212154[TESTBUG] CheckArchivedModuleApp fails with NPE when JVMCI is absent