On Fri, 8 Dec 2023 19:50:30 GMT, Roger Riggs wrote:
>> In the compact string implementation of non-latin1 (UTF16) strings the
>> length is constrained by VM implementation limit on the size a byte array
>> that can be allocated. To produce a useful exception the implementation
>> checks the
On Fri, 8 Dec 2023 19:32:02 GMT, Raffaello Giulietti
wrote:
>> src/java.base/share/classes/java/lang/StringUTF16.java line 59:
>>
>>> 57: if (len >= MAX_LENGTH) {
>>> 58: throw new OutOfMemoryError("UTF16 String size is " + len +
>>> 59:
> In the compact string implementation of non-latin1 (UTF16) strings the length
> is constrained by VM implementation limit on the size a byte array that can
> be allocated. To produce a useful exception the implementation checks the
> string size against the maximum byte array size. The