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

[TESTBUG] runtime/cds/appcds/DirClasspathTest.java can fail with a mapping error

XMLWordPrintable

    • b16
    • x86
    • windows

      Seen in tier4 CI testing on Windows:

      [STDERR]
      An error has occurred while processing the shared archive file.
      Unable to map MiscData shared space at required address.

      The test should be tolerant of archive mapping failures.

      Also this test seems to write to places it shouldn't. If you run this test locally under jtreg the second execution will fail due to:

      java.nio.file.FileAlreadyExistsException: /scratch/users/daholme/jdk-dev3/open/test/hotspot/jtreg/JTwork/classes/runtime/cds/appcds/DirClasspathTest.d/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/Super.class

      You have to delete the directory to allow the test to work again. Ideally the test should be writing into its own temporary working directory, not the location where jtreg puts the compiled class files.

            ccheung Calvin Cheung
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: