RFR: 8261743: Shenandoah: enable String deduplication with compact heuristics
William Kemper
wkemper at openjdk.org
Thu Nov 6 17:04:58 UTC 2025
On Thu, 6 Nov 2025 01:38:36 GMT, Rui Li <duke at openjdk.org> wrote:
> Enable `UseStringDeduplication` when using compact heuristics.
>
> Testing:
>
> ./build/macosx-aarch64-server-release/images/jdk/bin/java -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:ShenandoahGCHeuristics=compact -XX:+PrintFlagsFinal --version | grep UseStringDeduplication
> bool UseStringDeduplication = true {product} {default}
>
>
> Note: The labels should be `{product} {ergonomic}` ideally. Pending on a separate issue: [JDK-8371381](https://bugs.openjdk.org/browse/JDK-8371381)
Marked as reviewed by wkemper (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/28170#pullrequestreview-3429408699
More information about the hotspot-gc-dev
mailing list