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.
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.
- caused by
-
JDK-8322484 22-b26 Regression in J2dBench-bimg_misc-G1 (and more) on Windows-x64 and macOS-x64
-
- Closed
-
- relates to
-
JDK-8318706 Implement JEP 423: Region Pinning for G1
-
- Resolved
-