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

Add high-level jtreg VMProps to filter out CDS tests

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • None
    • hotspot
    • b03

      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)

        There are no Sub-Tasks for this issue.

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

              Created:
              Updated:
              Resolved: