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

G1: Early return on first failure in VerifyRegionClosure

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 19
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ayang Albert Yang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: