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

Remove G1CollectionSet::_inc_bytes_used_before

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • gc
    • b07

      The G1CollectionSet::_inc_bytes_used_before variable is used to track allocations during mutator time, and at start of collection assigned to G1CollectionSet::_bytes_used_before, which then continues to track used bytes in the collection set, and that total result used for statistics.

      There is no need to have the extra G1CollectionSet::_inc_bytes_used_before; there is no difference to just tracking incremental collection set used bytes directly in G1CollectionSet::_bytes_used_before, so remove it.

            tschatzl Thomas Schatzl
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: