RFR: 8314573: G1: Heap resizing at Remark does not take existing eden regions into account

Albert Mingkun Yang ayang at openjdk.org
Thu Aug 24 07:53:32 UTC 2023


On Wed, 23 Aug 2023 09:54:41 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> However this is no different to the current situation after full gc

I don't think they are the same -- in full-gc case eden is indeed empty, while in remark-pause the patch treats eden as empty even when it's not.

The version on master treats eden as full and do the heap resizing (expand/shrink). Can we permit only shrink in remark-pause, since eden liveness is unknown at that moment? (Remark-pause occurs not due to alloc-failure, so it is kind of logical not to expand the heap.)

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

PR Comment: https://git.openjdk.org/jdk/pull/15400#issuecomment-1691186141


More information about the hotspot-gc-dev mailing list