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

Enable CDS mode execution of jtreg tests via make

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b03
    • Verification:
      Verified

      Description

      Add a mechanism to allow a CDS mode execution using jdk make system.

      The goal is to execute arbitrary jtreg tests with use of CDS archive, to provide better testing for CDS.

      This should work as follows:
       - user specifies an env variable for make to enable this mode: GENERATE_CDS_ARCHIVE=true
       - this will work with 'test' target
       - when this mode is in use, make will generate a CDS archive by running -Xshare:dump into a predefined location
       - during the test execution the shared archive will be in use, specifying -XSharedArchiveFile=<location-defined-by-make>
       - user is free to append additional arguments, as usual, such as "-Xshare:auto, -Xshare:on, -Xlog:class+path=trace, etc."

      ========= Example:
        make GENERATE_CDS_ARCHIVE=true \
           test TEST=$testset \
           JAVA_ARGS="-Xshare:auto -Xlog:class+path=trace -XX:+PrintSharedSpaces -showversion"

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: