Integrated: 8322383: G1: Only preserve marks on objects that are actually moved

Roman Kennke rkennke at openjdk.org
Fri Jan 19 13:02:35 UTC 2024


On Tue, 19 Dec 2023 16:20:07 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

> The G1 full-GC preserves marks during marking, for all live objects in compaction region. However, not all live objects do actually move. In particular, the start of a compaction chain may have a sediment of all-live objects which would not move, and thus don't need to have their marks preserved.
> The problem can easily be solved by preserving marks during forwarding. That also seems a more natural place to do that.
> 
> Testing:
>  - [x] hotspot_gc
>  - [x] tier1
>  - [ ] tier2

This pull request has now been integrated.

Changeset: 16be3888
Author:    Roman Kennke <rkennke at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/16be38887f878b508e22d491542765bf7e518f94
Stats:     41 lines in 7 files changed: 18 ins; 13 del; 10 mod

8322383: G1: Only preserve marks on objects that are actually moved

Reviewed-by: ayang, tschatzl

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

PR: https://git.openjdk.org/jdk/pull/17159


More information about the hotspot-gc-dev mailing list