On Thu, 14 Dec 2023 12:03:11 GMT, Aleksei Voitylov
wrote:
> Thank you, Roger. Yes, I'll work on the 22 backport.
See https://wiki.openjdk.org/display/SKARA/Backports
Once the mainline is integrated, find the commit and add a "/backport jdk21"
comment.
Skara should do the rest (but read the di
On Wed, 13 Dec 2023 11:39:19 GMT, Aleksei Voitylov
wrote:
>> Since JDK-8311906, if CompactStrings is not enabled, index is not considered
>> when calling extractCodepoints from StringUTF16.toBytes(). Because of that
>> the last elements of the source codepoints array are stripped from the
>>
On Wed, 13 Dec 2023 11:39:19 GMT, Aleksei Voitylov
wrote:
>> Since JDK-8311906, if CompactStrings is not enabled, index is not considered
>> when calling extractCodepoints from StringUTF16.toBytes(). Because of that
>> the last elements of the source codepoints array are stripped from the
>>
On Wed, 13 Dec 2023 11:39:29 GMT, Aleksei Voitylov
wrote:
> If you think it's worth it, I can go through some tests and add some more
> -XX:-CompactStrings mode to java.lang.String tests here and there, lightly.
> It's not the first time we hit this issue.
Verifying the coverage of the tests
On Wed, 13 Dec 2023 11:39:19 GMT, Aleksei Voitylov
wrote:
>> Since JDK-8311906, if CompactStrings is not enabled, index is not considered
>> when calling extractCodepoints from StringUTF16.toBytes(). Because of that
>> the last elements of the source codepoints array are stripped from the
>>
On Wed, 13 Dec 2023 11:39:19 GMT, Aleksei Voitylov
wrote:
>> Since JDK-8311906, if CompactStrings is not enabled, index is not considered
>> when calling extractCodepoints from StringUTF16.toBytes(). Because of that
>> the last elements of the source codepoints array are stripped from the
>>
> Since JDK-8311906, if CompactStrings is not enabled, index is not considered
> when calling extractCodepoints from StringUTF16.toBytes(). Because of that
> the last elements of the source codepoints array are stripped from the
> resulting UTF16 string, which fires in other places (e.g. during