Skip to content

‑Xenablestringconstantgc / ‑Xdisablestringconstantgc

Enables or disables the collection of strings from the string intern table.

Syntax

Setting Effect Default
-Xenablestringconstantgc Enable collection yes
-Xdisablestringconstantgc Disable collection

This option is not supported with the balanced GC policy (-Xgcpolicy:balanced).