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

G1: Early return on first failure in VerifyRegionClosure

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 19
    • hotspot
    • gc
    • b05

      `VerifyRegionClosure` is applied on each region to verify certain properties. The comment says it would early-return on the first failure, but the code disagrees -- it would continue to next region.

      Additionally, the iteration will exit after the first archive (open/closed) region, which seems a mistake.

      The proposed fix is to have early-return only on first failure; otherwise, all regions will be visited.

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

              Created:
              Updated:
              Resolved: