RFR: 8276047: G1: refactor G1CardSetArrayLocker

Stefan Johansson sjohanss at openjdk.java.net
Fri Oct 29 08:58:08 UTC 2021


On Wed, 27 Oct 2021 08:52:08 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Simple refactoring in `G1CardSetArrayLocker`:
> 
> 1. rename fields to sth more explicit
> 2. drop `volatile` for thread-local variables
> 3. increment directly without treating `bool` as an integer
> 
> Test: hotspot_gc

Nice cleanup, looks good!

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

Marked as reviewed by sjohanss (Reviewer).

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



More information about the hotspot-gc-dev mailing list