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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 23
    • 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).

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

              Created:
              Updated:
              Resolved: