CDS: Trim down minimum GC region alignment

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 17, 21, 23, 24
    • Component/s: 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.

        There are no Sub-Tasks for this issue.

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

              Created:
              Updated:
              Resolved: