Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8212154

[TESTBUG] CheckArchivedModuleApp fails with NPE when JVMCI is absent

    XMLWordPrintable

Details

    • b18

    Backports

      Description

        test/hotspot/jtreg/runtime/appcds/cacheObject/CheckArchivedModuleApp.java fails with an NPE when JVM is built without JVMCI:

        ------------------- Test case 1 -------------------
        Command line: [myimage/bin/java ... CheckArchivedModuleApp yes yes ]
        [ELAPSED: 387 ms]
        [logging stdout to ArchivedModuleWithCustomImageTest-0001-custom.runtime.image.run.stdout]
        [logging stderr to ArchivedModuleWithCustomImageTest-0001-custom.runtime.image.run.stderr]
        [STDERR]
        Exception in thread "main" java.lang.NullPointerException
        at CheckArchivedModuleApp.main(CheckArchivedModuleApp.java:55)

        The following test are affected:
          runtime/appcds/cacheObject/ArchivedModuleWithCustomImageTest.java
          runtime/appcds/cacheObject/ArchivedModuleComboTest.java

        The bug is in the following code:

        test/hotspot/jtreg/runtime/appcds/cacheObject/CheckArchivedModuleApp.java:

            53 // -XX:+EnableJVMCI adds extra system modules, in which case the system
            54 // module objects are not archived.
            55 if (wb.getBooleanVMFlag("EnableJVMCI")) {
            56 expectArchivedDescriptors = false;
            57 expectArchivedConfiguration = false;
            58 }

        WhiteBox.getBooleanVMFlag() returns null when EnableJVMCI flag is absent.

        Attachments

          Issue Links

            Activity

              People

                ccheung Calvin Cheung
                vlivanov Vladimir Ivanov
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: