<div class="__aliyun_email_body_block"><div style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun"><div style="clear: both; font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><br ></span></div><div style="clear: both; font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span >Thanks to Alan for your feedback. </span></span></div><div style="clear: both; font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span ><br ></span></span></div><div style="clear: both; font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span >Based on Chen Liang's suggestion, I submitted a new draft PR <a href="https://github.com/openjdk/jdk/pull/27995" target="_blank">https://github.com/openjdk/jdk/pull/27995</a> to add a warning message to the ComactStrings option. </span></span></div><div style="clear: both; font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span ><br ></span></span></div><div style="clear: both; font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span >-</span></span></div><div style="clear: both; font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span >Shaojin Wen</span></span></div><blockquote style="margin-right: 0px; margin-top: 0px; margin-bottom: 0px; font-family: Tahoma, Arial, STHeiti, SimSun; font-size: 14px; color: rgb(0, 0, 0);"><div class="alimail-quote"><div style="clear: both;">------------------------------------------------------------------</div><div style="clear: both;">发件人:Alan Bateman <alan.bateman@oracle.com></div><div style="clear: both;">发送时间:2025年10月26日(周日) 14:32</div><div style="clear: both;">收件人:"温绍锦(高铁)"<shaojin.wensj@alibaba-inc.com>; "core-libs-dev"<core-libs-dev@openjdk.org></div><div style="clear: both;">主 题:Re: Propose to remove support for CompactStrings off</div><div style="clear: both;"><br ></div><div class="moz-cite-prefix">On 25/10/2025 11:53, wenshao wrote:<br >
</div>
<div style="margin: 14px 40px;">
<div style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;">
<div style="clear: both;"><span >Initially, the option to
disable CompactStrings was provided for performance
reasons. </span></div>
<div style="clear: both;"><span ><br >
</span></div>
<div style="clear: both;"><span >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.</span></div>
<br >
</div>
</div>
<br >
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.<br >
<br >
It would be useful to get list of the cases that dependent on
-XX:-CompactString/equivalent. It was initially a <span class=" __aliyun_node_has_color __aliyun_node_has_bgcolor" style="color: rgb(23, 43, 77); font-family: 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; word-spacing: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;">contingency
in the event of a performance or functional issue but I think we
are past all that. Things to check are the </span>32-bit ARM
port, is that this relevant? Other ports? IBM ports appear to care
about -CompactString, maybe only with their own VM?<br >
<br >
-Alan<br >
<br >
<br >
</div></blockquote></div></div>