Thanks to Alan for your feedback.
Based on Chen Liang's suggestion, I submitted a new draft PR
https://github.com/openjdk/jdk/pull/27995
<https://github.com/openjdk/jdk/pull/27995 > to add a warning message to the
ComactStrings option.
-
Shaojin Wen
------------------------------------------------------------------
发件人:Alan Bateman <[email protected]>
发送时间:2025年10月26日(周日) 14:32
收件人:"温绍锦(高铁)"<[email protected]>;
"core-libs-dev"<[email protected]>
主 题:Re: Propose to remove support for CompactStrings off
On 25/10/2025 11:53, wenshao wrote:
Initially, the option to disable CompactStrings was provided for performance
reasons.
However, with some optimizations for UTF8 scenarios and Latin1, disabling
CompactStrings no longer has any performance benefits. I propose removing the
related code to make it simpler and easier to maintain.
Thanks for bringing up this topic. I don't think it can be removed without
notice, any removal would at least need to start with deprecating the
CompactStrings VM option.
It would be useful to get list of the cases that dependent on
-XX:-CompactString/equivalent. It was initially a contingency in the event of a
performance or functional issue but I think we are past all that. Things to
check are the 32-bit ARM port, is that this relevant? Other ports? IBM ports
appear to care about -CompactString, maybe only with their own VM?
-Alan