G1: Remark pause does not flush cached pinned counts

XMLWordPrintable

    • gc
    • 22

      The remark pause does not flush cached pinned counts, but relies on `G1HeapRegion::has_pinned_objects()` (in `G1UpdateRegionLivenessAndSelectForRebuildTask::OnRegionClosure`) to return a useful value.

      Not determining pinning state correctly allows G1 to reclaim and reuse completely empty looking regions (i.e. having only reference from JNI), which causes data corruption and ultimately crashes.

            Assignee:
            Thomas Schatzl
            Reporter:
            Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: