‑Xenablestringconstantgc / ‑Xdisablestringconstantgc
These options enable or disable 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
).