回复:Propose to remove support for CompactStrings off
wenshao
shaojin.wensj at alibaba-inc.com
Tue Oct 28 06:32:30 UTC 2025
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 <alan.bateman at oracle.com>
发送时间:2025年10月26日(周日) 14:32
收件人:"温绍锦(高铁)"<shaojin.wensj at alibaba-inc.com>; "core-libs-dev"<core-libs-dev at openjdk.org>
主 题: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20251028/82527755/attachment-0001.htm>
More information about the core-libs-dev
mailing list