Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets [v4]

2023-03-02 Thread Roger Riggs
On Sat, 28 Jan 2023 19:54:32 GMT, Glavo wrote: >> This is the javadoc of `JavaLangAccess::newStringNoRepl`: >> >> >> /** >> * Constructs a new {@code String} by decoding the specified subarray of >> * bytes using the specified {@linkplain java.nio.charset.Charset >> charset}. >>

Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets

2023-03-01 Thread Glavo
On Fri, 27 Jan 2023 16:04:41 GMT, Roger Riggs wrote: >> This is the javadoc of `JavaLangAccess::newStringNoRepl`: >> >> >> /** >> * Constructs a new {@code String} by decoding the specified subarray of >> * bytes using the specified {@linkplain java.nio.charset.Charset >> charset

Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets [v4]

2023-02-28 Thread Glavo
On Sat, 28 Jan 2023 19:54:32 GMT, Glavo wrote: >> This is the javadoc of `JavaLangAccess::newStringNoRepl`: >> >> >> /** >> * Constructs a new {@code String} by decoding the specified subarray of >> * bytes using the specified {@linkplain java.nio.charset.Charset >> charset}. >>

Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets [v4]

2023-02-27 Thread Glavo
On Sat, 28 Jan 2023 19:54:32 GMT, Glavo wrote: >> This is the javadoc of `JavaLangAccess::newStringNoRepl`: >> >> >> /** >> * Constructs a new {@code String} by decoding the specified subarray of >> * bytes using the specified {@linkplain java.nio.charset.Charset >> charset}. >>

Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets [v4]

2023-01-29 Thread Glavo
On Sat, 28 Jan 2023 19:54:32 GMT, Glavo wrote: >> This is the javadoc of `JavaLangAccess::newStringNoRepl`: >> >> >> /** >> * Constructs a new {@code String} by decoding the specified subarray of >> * bytes using the specified {@linkplain java.nio.charset.Charset >> charset}. >>

Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets [v4]

2023-01-28 Thread Glavo
> This is the javadoc of `JavaLangAccess::newStringNoRepl`: > > > /** > * Constructs a new {@code String} by decoding the specified subarray of > * bytes using the specified {@linkplain java.nio.charset.Charset > charset}. > * > * The caller of this method shall relinquis

Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets [v3]

2023-01-28 Thread Glavo
> This is the javadoc of `JavaLangAccess::newStringNoRepl`: > > > /** > * Constructs a new {@code String} by decoding the specified subarray of > * bytes using the specified {@linkplain java.nio.charset.Charset > charset}. > * > * The caller of this method shall relinquis

Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets [v2]

2023-01-28 Thread Glavo
On Sat, 28 Jan 2023 19:28:46 GMT, Roger Riggs wrote: > The parameter will be easier to understand if `true` means that the string > created must not share the byte array supplied. For example, > > @param noShare {@code true} if the resulting string MUST NOT share the byte > array, {@code false

Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets [v2]

2023-01-28 Thread Glavo
> This is the javadoc of `JavaLangAccess::newStringNoRepl`: > > > /** > * Constructs a new {@code String} by decoding the specified subarray of > * bytes using the specified {@linkplain java.nio.charset.Charset > charset}. > * > * The caller of this method shall relinquis

Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets

2023-01-28 Thread Roger Riggs
On Fri, 20 Jan 2023 16:47:27 GMT, Glavo wrote: > This is the javadoc of `JavaLangAccess::newStringNoRepl`: > > > /** > * Constructs a new {@code String} by decoding the specified subarray of > * bytes using the specified {@linkplain java.nio.charset.Charset > charset}. > * >

Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets

2023-01-27 Thread Glavo
On Fri, 27 Jan 2023 16:04:41 GMT, Roger Riggs wrote: >> This is the javadoc of `JavaLangAccess::newStringNoRepl`: >> >> >> /** >> * Constructs a new {@code String} by decoding the specified subarray of >> * bytes using the specified {@linkplain java.nio.charset.Charset >> charset

Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets

2023-01-27 Thread Roger Riggs
On Fri, 20 Jan 2023 16:47:27 GMT, Glavo wrote: > This is the javadoc of `JavaLangAccess::newStringNoRepl`: > > > /** > * Constructs a new {@code String} by decoding the specified subarray of > * bytes using the specified {@linkplain java.nio.charset.Charset > charset}. > * >

Re: RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets

2023-01-27 Thread Glavo
On Fri, 20 Jan 2023 16:47:27 GMT, Glavo wrote: > This is the javadoc of `JavaLangAccess::newStringNoRepl`: > > > /** > * Constructs a new {@code String} by decoding the specified subarray of > * bytes using the specified {@linkplain java.nio.charset.Charset > charset}. > * >

RFR: 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets

2023-01-27 Thread Glavo
This is the javadoc of `JavaLangAccess::newStringNoRepl`: /** * Constructs a new {@code String} by decoding the specified subarray of * bytes using the specified {@linkplain java.nio.charset.Charset charset}. * * The caller of this method shall relinquish and transfer the