Parallel: Move should_attempt_scavenge to ParallelScavengeHeap

XMLWordPrintable

    • gc
    • b25

      PSScavenge::should_attempt_scavenge contains some heuristics to decide whether a young-gc should be upgraded to full-gc, e.g. old-gen has low free-space, which might results into young-gc failure.

      One can move such heuristics to the caller of PSScavenge::invoke, instead. This can simplify the logic in `PSScavenge::invoke` so that when it's called, it always runs to completion (always triggers a young-gc), no early-return.

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

              Created:
              Updated:
              Resolved: