RFR: 8353471: ZGC: Redundant generation id in ZGeneration

Erik Österlund eosterlund at openjdk.org
Wed Apr 2 10:01:34 UTC 2025


On Wed, 2 Apr 2025 06:52:49 GMT, Joel Sikström <jsikstro at openjdk.org> wrote:

> The ZGeneration class (and in turn ZGenerationOld and ZGenerationYoung) keeps track of its own ZGenerationId, which means that the generation id does not need to be passed along as an argument when calling internal functions.
> 
> I've removed the id parameter from `ZGeneration::select_relocation_set` in favor of using the member variable `_id`.

Marked as reviewed by eosterlund (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/24374#pullrequestreview-2735717264


More information about the hotspot-gc-dev mailing list