Integrated: 8314329: AgeTable: add is_clear() & allocation spec, and relax assert to allow use of 0-index slot

Y. Srinivas Ramakrishna ysr at openjdk.org
Mon Jan 22 19:54:38 UTC 2024


On Wed, 17 Jan 2024 21:56:44 GMT, Y. Srinivas Ramakrishna <ysr at openjdk.org> wrote:

> I'd like to propose the following changes to the AgeTable (motivated by the uses in generational shenandoah):

This pull request has now been integrated.

Changeset: df370d72
Author:    Y. Srinivas Ramakrishna <ysr at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/df370d725e5ae55a05479e8375bf665233ac3e44
Stats:     19 lines in 2 files changed: 15 ins; 1 del; 3 mod

8314329: AgeTable: add is_clear() & allocation spec, and relax assert to allow use of 0-index slot

AgeTable changes:
1. add CHeap allocation spec
2. add a non-product const is_clear() method to check if the age table has only zero entries
3. relax the assertion that the 0th index of the age table is never used, to allow use of that slot

Reviewed-by: wkemper, kdnilsen, ayang, shade

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

PR: https://git.openjdk.org/jdk/pull/17470


More information about the hotspot-gc-dev mailing list