RFR: Fix verifier handling of weak references when scanning the remembered set

Zhengyu Gu zgu at openjdk.java.net
Wed May 19 23:31:12 UTC 2021


On Wed, 19 May 2021 22:02:11 GMT, William Kemper <wkemper at openjdk.org> wrote:

> In some use cases, `ShenandoahVerifier` is required to _ignore_ weak references (because they will be processed concurrently). Because of the way the remembered set scan handles oops, it must use an `OopIterateClosure` (not a bare `OopClosure`). To make use of the `OopClosure` passed to the remembered set scanner, it was wrapped in an "adapter" that sheared off the `ShenandoahIgnoreReferenceDiscoverer` configured on the passed in closure. This change removes the need to use such an adapter during the verifier's root scan.

Looks good.

-------------

Marked as reviewed by zgu (Committer).

PR: https://git.openjdk.java.net/shenandoah/pull/41


More information about the shenandoah-dev mailing list