Serial: Refactor GenCollectedHeap::collect

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 20
    • Component/s: hotspot
    • gc
    • b18

      `GenCollectedHeap::collect` mixes debug-only `GCCause::_scavenge_alot` with product code in a way that makes the logic hard to follow. Try to take some inspiration from similar scenarios in Parallel (`is_cause_full` in `psVMOperations.cpp`) and G1 (`G1CollectedHeap::try_collect`).

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: