RFR: 8275298: Remove unnecessary weak_oops_do call in adjust weak roots phase

Thomas Schatzl tschatzl at openjdk.java.net
Fri Oct 15 08:14:48 UTC 2021


On Thu, 14 Oct 2021 18:43:44 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> This PR consists of two logical steps in two commits:
> 
> 1. change `weak_oops_do` to `verify_no_references_recorded` to check discovered lists (DL) are indeed empty during adjust-weak-roots phase
> 2. Move the assertion to the end of ref-processing, since elements on DL are not really related to "weak roots"
> 
> Test: tier1-6

Lgtm.

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

Marked as reviewed by tschatzl (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/5957



More information about the hotspot-gc-dev mailing list