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

[TESTBUG] Improve CDS test utils

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      Planning the following improvements to make CDS tests more robust, improve code reuse, ease of development and maintenance:

      - create/use CDS utility methods for common patterns in CDS related tests:
           - creating an testlist
           - creating an archive, checking result
           - executing JVM with the archive
           - checking results and common error patterns

      - use -Xshare:on when executing CDS tests, and use test utilities
         to filter out failures due to inability to map shared archive.
         This is a more deterministic way to execute CDS tests, rather than
         running tests with -Xshare:auto, which follows different code path
         and may hide issues.

      - additional improvements came up as part of this work,
         such as jdk.test.lib.Utils:getTestName()

        Attachments

          Activity

            People

            Assignee:
            mseledtsov Mikhailo Seledtsov
            Reporter:
            mseledtsov Mikhailo Seledtsov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: