Re: RFR: 8310843: Reimplement ByteArray and ByteArrayLittleEndian with Unsafe [v3]

2023-06-24 Thread Glavo
On Sat, 24 Jun 2023 09:16:38 GMT, Chen Liang wrote: > Do the Unsafe methods throw NPE on null array argument? No, but `arrayOffset` will throw. - PR Review Comment: https://git.openjdk.org/jdk/pull/14636#discussion_r1240681104

Re: RFR: 8310843: Reimplement ByteArray and ByteArrayLittleEndian with Unsafe [v3]

2023-06-24 Thread Glavo
> `ByteArray` and `ByteArrayLittleEndian` are very useful tool classes that can > be used in many places to performance tuning. > > Currently they are implemented by `VarHandle`, so using them may have some > impact on startup time. > > This PR reimplements them using `Unsafe`, which reduces th