Integrated: 8267257: Shenandoah: Always deduplicate strings when it is enabled during full gc
Zhengyu Gu
zgu at openjdk.java.net
Wed May 19 13:16:44 UTC 2021
On Tue, 18 May 2021 15:18:32 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:
> Full GC should recover as much memory as possible, so it should deduplicate all string candidates regardless their ages, when it is enabled. Also enhanced TestStringDedup.java test to ensure all candidates are deduplicated.
>
> Note: Full GC does not preserve age bits, so current implementation will not deduplicate any strings even with back-to-back full GCs.
>
> Test:
> - [x] hotspot_gc_shenandoah
This pull request has now been integrated.
Changeset: 0b49f5ae
Author: Zhengyu Gu <zgu at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/0b49f5ae19b51d7ff7548b8492ea0f58dfe53180
Stats: 140 lines in 9 files changed: 58 ins; 45 del; 37 mod
8267257: Shenandoah: Always deduplicate strings when it is enabled during full gc
Reviewed-by: rkennke
-------------
PR: https://git.openjdk.java.net/jdk/pull/4096
More information about the shenandoah-dev
mailing list