RFR: 8334060: Implementation of Late Barrier Expansion for G1 [v16]

Roberto Castañeda Lozano rcastanedalo at openjdk.org
Fri Sep 6 12:07:57 UTC 2024


On Fri, 6 Sep 2024 10:12:19 GMT, halkosajtarevic <duke at openjdk.org> wrote:

> I was just thinking whether it is necessary to do these barriers for enums at all. They will most likely always reside in a different region/generation anyways, and will (but that may be wrong) never be collected.

As far as I understand, from a GC perspective enum instances are handled just like any other class instance, so I do not think there is any special GC barrier optimization opportunity for them. Maybe some GC expert can comment further on this or correct me if I am wrong.

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

PR Comment: https://git.openjdk.org/jdk/pull/19746#issuecomment-2333907222


More information about the hotspot-compiler-dev mailing list