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

CDS: Segmented roots array

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • hotspot
    • b16

      Attempt to drop the min region alignment with JDK-8337828 highlights an interesting trouble. The roots array we are creating during the dump time can easily be larger than the min region alignment. We are currently "lucky" none of our tests hit this limit. AFAICS, about 128K classes would be enough to hit the current 1M min region alignment. Dropping the min region alignment to 256K starts to fail the test with "only" 30K classes, JDK-8338856.

      There might be a way to allow larger roots count. For example, we can try and slice the roots array, and thus let the individual slices be sized below min region alignment. It remains to be seen how hard is that, and what performance implications it has.

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

              Created:
              Updated:
              Resolved: