Integrated: Fix budgeting assertion
Kelvin Nilsen
kdnilsen at openjdk.org
Sat Aug 13 00:19:32 UTC 2022
On Fri, 5 Aug 2022 20:54:35 GMT, Kelvin Nilsen <kdnilsen at openjdk.org> wrote:
> An assertion failure revealed problems with evacuation budgeting computations. Three changes are reflected in this pull request:
>
> 1. Memory set aside for the promotion reserve was not excluded from the allocation supplement
> 2. When the old evacuation reserve is larger than the memory consumed by old evacuation collection set, we loan the excess memory to allocation supplement to make sure this memory is not consumed by promotions. The number of regions set aside from this reserve for the allocation supplement must be rounded down from the total excess memory. (Before this patch, it was rounded up.)
> 3. The assertion test that was failing needed a <= comparison instead of a < comparison.
This pull request has now been integrated.
Changeset: b4ff060b
Author: Kelvin Nilsen <kdnilsen at openjdk.org>
URL: https://git.openjdk.org/shenandoah/commit/b4ff060bf879a56141bd7c46713675ae2f2b466f
Stats: 71 lines in 3 files changed: 47 ins; 1 del; 23 mod
Fix budgeting assertion
Reviewed-by: wkemper
-------------
PR: https://git.openjdk.org/shenandoah/pull/156
More information about the shenandoah-dev
mailing list