RFR: 8277736: G1: Allow forced evacuation failure of first N regions in collection set [v2]

Hamlin Li mli at openjdk.java.net
Wed Dec 1 09:51:36 UTC 2021


On Wed, 1 Dec 2021 09:32:59 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

>> Another, imo better way would be allowing a string for the type of selection algorithm, like `VerifyGCType`, with current possible values being `NthObject` (or just default) and `FirstRegions` or so.
>
> That could be extended to `RandomRegions` later.
> 
> This needs another flag though, maybe something like `G1EvacuationFailureALotObjectSelectionType` (random name right now, probably you will come up with something better).

I think you mean we add this option when implement https://bugs.openjdk.java.net/browse/JDK-8277851, am I right? If possible, sure, it make sense to me, it's much easier to extend the algorithms in the future.

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

PR: https://git.openjdk.java.net/jdk/pull/6561



More information about the hotspot-gc-dev mailing list