RFR: Loan from old should align on region size
Y. Srinivas Ramakrishna
ysr at openjdk.org
Wed Feb 1 03:17:28 UTC 2023
On Wed, 1 Feb 2023 02:57:07 GMT, Kelvin Nilsen <kdnilsen at openjdk.org> wrote:
> This fixes an error detected by a recently added assertion on a different branch. When loaning memory from old-gen to young-gen, it is important the total amount of the loan be an integral number of ShenandoahHeapRegions. The total loan represents a sum of memory loaned to support young evacuations and memory loaned to support mutator allocations made while GC is active. The sum of these two values is a multiple of region size. The previous version of the code accidentally loaned only the memory dedicated to supporting mutator allocations, which is not necessarily a multiple of the region size.
Marked as reviewed by ysr (Author).
-------------
PR: https://git.openjdk.org/shenandoah/pull/213
More information about the shenandoah-dev
mailing list