RFR: 8365880: Shenandoah: Unify memory usage accounting in ShenandoahFreeSet [v12]
Kelvin Nilsen
kdnilsen at openjdk.org
Tue Oct 7 16:27:59 UTC 2025
On Thu, 2 Oct 2025 23:09:34 GMT, William Kemper <wkemper at openjdk.org> wrote:
>> Kelvin Nilsen has updated the pull request incrementally with five additional commits since the last revision:
>>
>> - small refactoring
>> - OO refinements to used_regions_size()
>> - fix broken assert from previous commit
>> - OO refinements to free_unaffiliated_regions()
>> - OO refinements to max_capacity()
>
> src/hotspot/share/gc/shenandoah/shenandoahGlobalGeneration.cpp line 40:
>
>> 38:
>> 39: size_t ShenandoahGlobalGeneration::max_capacity() const {
>> 40: #ifdef ASSERT
>
> Could we just have this assertion one time in the constructor?
Yes. Making this change. Thanks.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26867#discussion_r2411198002
More information about the hotspot-gc-dev
mailing list