Re: RFR: 8321180: Condition for non-latin1 string size too large exception is off by one [v3]

2023-12-09 Thread Raffaello Giulietti
On Fri, 8 Dec 2023 22:35: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

Re: RFR: 8321180: Condition for non-latin1 string size too large exception is off by one [v3]

2023-12-08 Thread Roger Riggs
> 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