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

Move G1Allocator::_summary_bytes_used back to G1CollectedHeap

    Details

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

      Backports

        Description

        G1Allocator::_summary_bytes_used tracks the amount of memory used in regions that are not currently managed by G1Allocator or G1ArchiveAllocator.

        This member seems to be misplaced in G1Allocator because G1Allocator does not use it at all. G1CollectedHeap actually manages this value, there are multiple accessor functions just for it. G1CollectedHeap is the only one ever interested in total memory value, needing to sum up all components from all Allocators anyway.

        So I think the best option is to move _summary_bytes_used back to G1CollectedHeap, and let G1Allocator just be responsible for managing the memory it currently uses, until a better place is found.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tschatzl Thomas Schatzl
                  Reporter:
                  tschatzl Thomas Schatzl
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: