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

PS - cleanup invoke methods/policy

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • hs23
    • hotspot
    • None
    • gc
    • generic
    • generic

      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).

            jcoomes John Coomes (Inactive)
            jcoomes John Coomes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: