Search code examples
javagarbage-collectionzgc

Does the ZGC garbage collector support string deduplication?


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?


Solution

  • Support for String Deduplication (-XX:+UseStringDeduplication)

    Since JDK18: https://wiki.openjdk.java.net/display/zgc/Main