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

CDS: Trim down minimum GC region alignment

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 17, 21, 23, 24
    • hotspot
    • b12

      CDS has a G1-dependent code block:

        // The minimum region size of all collectors that are supported by CDS in
        // ArchiveHeapLoader::can_map() mode. Currently only G1 is supported. G1's region size
        // depends on -Xmx, but can never be smaller than 1 * M.
        // (TODO: Perhaps change to 256K to be compatible with Shenandoah)
        static constexpr int MIN_GC_REGION_ALIGNMENT = 1 * M;

      For Shenandoah, it would be indeed convenient to have that alignment to be trimmed to 256K. This would improve JDK-8293650.

      Trimming down the min region alignment has impact on the size of the objects we can store in CDS archive. We need to explore if we hit a new threshold anywhere.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: