RFR: 8314935: Shenandoah: Unable to throw OOME on back-to-back Full GCs

William Kemper wkemper at openjdk.org
Tue Sep 5 20:36:41 UTC 2023


On Wed, 30 Aug 2023 23:33:57 GMT, William Kemper <wkemper at openjdk.org> wrote:

> Retry allocations until at least one full gc is complete, do not spin unnecessarily when gc is not making progress.

src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp line 894:

> 892:     }
> 893: 
> 894:     while (result == nullptr && tries <= ShenandoahFullGCThreshold) {

Just want to point out, the description of `ShenandoahFullGCThreshold` does not cover this use case (also, the original code here was not concerned with full GCs):
>           "How many back-to-back Degenerated GCs should happen before going to a Full GC."

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15500#discussion_r1316379342


More information about the hotspot-gc-dev mailing list