2

Since it is not listed as an option at https://wiki.openjdk.java.net/display/zgc/Main I assume it is not supported. Some tests code made me wonder if it is supported?

Nick Russler
  • 4,608
  • 6
  • 51
  • 88

2 Answers2

5

As of this moment, it looks like ZGC will support string deduplication as of Java 18 (from the pre-release notes):

Build 11

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

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

Paul Wagland
  • 27,756
  • 10
  • 52
  • 74
0

Per Liden, the ZGC project lead, stated on 2020-04-02:

ZGC doesn't do String deduplication (yet).

Source

Nick Russler
  • 4,608
  • 6
  • 51
  • 88