Serial: Refactor SerialHeap::update_gc_stats and TenuredGeneration::update_gc_stats

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • tbd
    • Affects Version/s: 23
    • Component/s: hotspot
    • gc

      During reviewing JDK-8331557, I found that the methods `SerialHeap::update_gc_stats` and `TenuredGeneration::update_gc_stats` only sample the promoted size. So it is good to rename them to `sample_promoted_amount` and simplify `TenuredGeneration::update_gc_stats` (remove the parameter `Generation* current_generation` and reduce the conditional statement).

            Assignee:
            Guoxiong Li
            Reporter:
            Guoxiong Li
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: