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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      b16
    • CPU:
      x86
    • OS:
      windows

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ccheung Calvin Cheung
                Reporter:
                dholmes David Holmes
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: