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

Remove information duplication in the collector policy

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b20

      Description

      The variables _initial_heap_byte_size, _max_heap_byte_size and similar for gen0 and gen1 contains the same information as the global flag variables InitialHeapSize, MaxHeapSize etc. If they becomes out of sync there will be bugs. To avoid this we should remove the _xx_byte_size variables and change the getters for these to read the information directly from the flags.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: