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

Fix race between G1PeriodicGCTask checks and GC request

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b10

      Description

      The G1PeriodicGCTask performs various checks to determine whether a periodic GC should be performed. Even if all those tests are performed in a context where a GC cannot be running concurrently (JDK-8271215, executing the checks in an STS-joiner), there is still a race between the end of that checking and the actual request via try_collect. This can be addressed by capturing the GC counters as part of that checking context and passing them to try_collect for use by the VMOp.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kbarrett Kim Barrett
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: