RFR: 8377142: Jtreg test gc/shenandoah/oom/TestThreadFailure.java triggers assert(young_reserve + reserve_for_mixed + reserve_for_promo <= old_available + young_available) failed [v2]

Kelvin Nilsen kdnilsen at openjdk.org
Thu Feb 12 17:56:02 UTC 2026


On Wed, 11 Feb 2026 18:11:40 GMT, William Kemper <wkemper at openjdk.org> wrote:

>> Kelvin Nilsen has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Respond to reviewer suggestions
>
> src/hotspot/share/gc/shenandoah/shenandoahGenerationalHeap.cpp line 787:
> 
>> 785:   }
>> 786: 
>> 787:   assert(old_region_deficit == 0 || old_region_surplus == 0, "Only surplus or deficit, never both");
> 
> Suggestion:
> 
>   assert(old_region_deficit == 0 || old_region_surplus == 0, "Only surplus (%zu) or deficit (%zu), never both", old_region_surplus, old_region_deficit);

I've made this change as well.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29621#discussion_r2800269234


More information about the hotspot-gc-dev mailing list