Integrated: 8273626: G1: Factor out concurrent segmented array from G1CardSetAllocator

Hamlin Li mli at openjdk.java.net
Tue Oct 19 12:28:05 UTC 2021


On Sat, 11 Sep 2021 05:05:47 GMT, Hamlin Li <mli at openjdk.org> wrote:

> To finish https://bugs.openjdk.java.net/browse/JDK-8254739, we need a segmented array to store a growing regions index array, in the initial version of that patch, a newly home made segmented array was used, but the memory efficiency is not as good as expected, G1CardSetAllocator is a potential candidate to fullfill the requirement, but need some enhancement.
> 
> This is a try to enhance G1CardSetAllocator(and G1CardSetBuffer, G1CardSetBufferList) to support element size less pointer size, and strip this basic function as a more generic segmented array (G1SegmentedArray).

This pull request has now been integrated.

Changeset: d17d81a8
Author:    Hamlin Li <mli at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/d17d81a8b2a6336f37e17f31413a62c7adf49936
Stats:     819 lines in 8 files changed: 494 ins; 299 del; 26 mod

8273626: G1: Factor out concurrent segmented array from G1CardSetAllocator

Reviewed-by: tschatzl, ayang

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

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



More information about the hotspot-gc-dev mailing list