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

Add high-level jtreg VMProps to filter out CDS tests

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b03

      Description

      Currently the CDS tests are filtered out in an ad-hoc fashion. E.g., in test/hotspot/jtreg/runtime/appcds/HelloTest.java

       * @summary Hello World test for AppCDS
       * AppCDS does not support uncompressed oops
       * @requires (vm.opt.UseCompressedOops == null) | (vm.opt.UseCompressedOops == true)

      The tests related to archived heap objects are more confusing:

       * Feature support: G1GC only, compressed oops/kptrs, 64-bit os, not on windows
       * @requires (sun.arch.data.model != "32") & (os.family != "windows")
       * @requires (vm.opt.UseCompressedOops == null) | (vm.opt.UseCompressedOops == true)
       * @requires vm.gc.G1

      This should be changed to high-level properties to something like:

      @require vm.cds
      @require vm.cds.appcds
      @require vm.cds.archived.objects

      (names are TBD)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                iklam Ioi Lam
                Reporter:
                iklam Ioi Lam
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: