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

[TESTBUG] WB_IsCDSIncludedInVmBuild should support uncompressed oops/klasses

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b15

      Description

      http://hg.openjdk.java.net/jdk/jdk/file/73bcb3e4e596/src/hotspot/share/prims/whitebox.cpp#l1975

      WB_ENTRY(jboolean, WB_IsCDSIncludedInVmBuild(JNIEnv* env))
      #if INCLUDE_CDS
      # ifdef _LP64
          if (!UseCompressedOops || !UseCompressedClassPointers) {
            // On 64-bit VMs, CDS is supported only with compressed oops/pointers
            return false;
          }
      # endif // _LP64
        return true;
      #else
        return false;
      #endif // INCLUDE_CDS
      WB_END

      The test for (!UseCompressedOops || !UseCompressedClassPointers) should be removed because CDS started supporting them after JDK-8232069.

      To validate, run all CDS tests with

      jtreg -vmoptions:-XX:+UseZGC
      jtreg -vmoptions:-XX:-UseCompressedOops
      jtreg -vmoptions:-XX:-UseCompressedClassPointers

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                minqi Yumin Qi
                Reporter:
                iklam Ioi Lam
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: