Skip to content

CAUTION: This site hosts draft documentation for the next release. For published content of the latest release, visit www.eclipse.org/openj9/docs

‑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).