Integrated: Refactor budgeting to make the logic cleaner

Kelvin Nilsen kdnilsen at openjdk.org
Wed Jul 13 17:02:19 UTC 2022


On Tue, 28 Jun 2022 03:20:44 GMT, Kelvin Nilsen <kdnilsen at openjdk.org> wrote:

> This commit consolidates computations related to budgeting of reserves for old-gen evacuation and old-gen promotion within shenandoahGeneration::prepare_regions_and_collection_set().  Previously, these computations had been scattered between several functional units, including shenandoahHeuristics::choose_collection_set() and shenandoahOldHeuristics::prime_collection_set().  A previous pull request brought some of the redundant functionality into prepare_regions_and_collection_set().  This pull request removes the redundant computations from the other locations.

This pull request has now been integrated.

Changeset: d47c60ec
Author:    Kelvin Nilsen <kdnilsen at openjdk.org>
URL:       https://git.openjdk.org/shenandoah/commit/d47c60ecd81c05bda39191e44ee916a5aab22baa
Stats:     1191 lines in 11 files changed: 545 ins; 584 del; 62 mod

Refactor budgeting to make the logic cleaner

Reviewed-by: rkennke, wkemper

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

PR: https://git.openjdk.org/shenandoah/pull/148


More information about the shenandoah-dev mailing list