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?
Asked
Active
Viewed 1,102 times
2 Answers
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).

Nick Russler
- 4,608
- 6
- 51
- 88
-
Is there an issue anywhere for this to be implemented? That is, when I come back and look at this answer in a year, how will I know if this is still valid or not? – Paul Wagland Oct 15 '21 at 22:01
-
Ah. I found the issue, and added an answer for that. – Paul Wagland Oct 15 '21 at 22:52