G1: Optional Evacuations may evacuate pinned objects

XMLWordPrintable

    • gc
    • 25

      When selecting regions for optional evacuation, the pinned attribute is not set in G1CollectedHeap::register_old_region_with_region_attr. As a result, regions containing pinned objects may be incorrectly evacuated, potentially leading to the movement of pinned objects and causing crashes in JNI. This issue was first reported by zstd-jni in the pull request: https://github.com/openjdk/jdk/pull/22015.

      Note:
      G1PrepareRegionsClosure fixes this for the regular evacuation

            Assignee:
            Ivan Walulya
            Reporter:
            Ivan Walulya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: