RFR: 8274516: [REDO] JDK-8271880: Tighten condition for excluding regions from collecting cards with cross-references [v2]
Thomas Schatzl
tschatzl at openjdk.java.net
Tue Oct 5 11:14:07 UTC 2021
On Tue, 5 Oct 2021 09:29:53 GMT, Stefan Johansson <sjohanss at openjdk.org> wrote:
>> Thomas Schatzl has updated the pull request incrementally with one additional commit since the last revision:
>>
>> sjohanss review
>
> src/hotspot/share/gc/shared/referenceProcessor.cpp line 266:
>
>> 264: } else {
>> 265: RawAccess<>::oop_store(_prev_discovered_addr, new_next);
>> 266: }
>
> What do you think about switching the if-statement around and add a comment explaining why we special case the head?
I prefer to keep the common case as first option. Added a comment to it though.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5786
More information about the hotspot-gc-dev
mailing list