Integrated: Adaptive heuristic should take reserved memory into account

William Kemper wkemper at openjdk.org
Tue Jun 28 15:56:30 UTC 2022


On Mon, 27 Jun 2022 21:24:06 GMT, William Kemper <wkemper at openjdk.org> wrote:

> Before this change, the heuristic considered the memory available to both the collector and mutators. Since the collector memory is not available to mutators, they may experience an allocation failure before the heuristic could anticipate. With this change, the heuristic looks at the memory available to mutators only. This has the effect of making the heuristic tend to start cycles earlier, thus avoiding degenerated cycles.

This pull request has now been integrated.

Changeset: 3c066d43
Author:    William Kemper <wkemper at openjdk.org>
URL:       https://git.openjdk.org/shenandoah/commit/3c066d43f2686a160f4a61acd6524b5acf79a8e7
Stats:     60 lines in 1 file changed: 32 ins; 26 del; 2 mod

Adaptive heuristic should take reserved memory into account

Reviewed-by: kdnilsen

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

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


More information about the shenandoah-dev mailing list