RFR: 8308507: G1: GClocker induced GCs can starve threads requiring memory leading to OOME [v4]

Ivan Walulya iwalulya at openjdk.org
Fri Jun 2 08:37:36 UTC 2023


On Thu, 1 Jun 2023 12:08:12 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> I thought it would be easier to follow with the two lists. I can merge them, If that is easier.
>
> I think it's the `state` that determines how element should be processed, regardless which list it lives on. If so, merging them sounds simpler. Could you try and see which approach is shorter/clearer/easier?

Done! could have more optimisations on early return from some of the list iterations. But pre-mature at this point.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14077#discussion_r1214086480


More information about the hotspot-gc-dev mailing list