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

Clean up alignment initialization in Parallel Scavenge

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      There is a circular dependency between the alignment, the page size and the heap size in parallel scavenge. This can be seen in GenerationSizer::initialize_size_info() where we first calculate the page size based on the heap size already calculated in initialize_flags(). Then, the alignment is calculated based on the new page size, and if the alignment is changed initialize_flags() is called again to calculate a new heap size...

      This should be cleaned up. The page size could probably be calculated earlier based on an estimate of the heap size somewhere around the time where we call initialize_alignments().

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jwilhelm Jesper Wilhelmsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: