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

Fix race between G1PeriodicGCTask checks and GC request

    XMLWordPrintable

Details

    • gc
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: