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

PS - cleanup invoke methods/policy

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: hs23
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Introduced In Version:
    • CPU:
      generic
    • OS:
      generic

      Description

      The method PSScavenge::invoke() can end up doing a young gc, full gc, both, or none. This is somewhat confusing, especially when calling code has the need to know what was done (7146343 made a small change in this direction). The policy in this method is better suited to a higher-level class such as ParallelScavengeHeap.

      More specifically, the PSScavenge::invoke() method should do a young gc if possible, and return whether or not the young gc was done (nothing more). A new controlling method in ParallelScavengeHeap should then determine whether to do a full gc, and return to callers an indication of the type of gc(s) done (i.e., an enum).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jcoomes John Coomes
                Reporter:
                jcoomes John Coomes
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: