ZGC 垃圾回收器是否支持字符串去重?

Does the ZGC garbage collector support string deduplication?

因为它没有在 https://wiki.openjdk.java.net/display/zgc/Main I assume it is not supported. Some tests code 中列为选项,所以我想知道它是否受支持?

ZGC 项目负责人 Per Liden 在 2020-04-02 表示:

ZGC doesn't do String deduplication (yet).

Source

截至目前,从 Java 18(从 pre-release notes 开始)起,ZGC 似乎将支持字符串重复数据删除:

Build 11

ZGC supports string deduplication (JDK-8267186) hotspot/gc

The Z Garbage Collector now supports string deduplication (JEP 192).