RFR: 8310843: Reimplement ByteArray and ByteArrayLittleEndian with Unsafe [v9]

Chen Liang liach at openjdk.org
Thu Jun 29 00:43:59 UTC 2023


On Tue, 27 Jun 2023 20:29:36 GMT, Glavo <duke at openjdk.org> wrote:

>> `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 the impact on startup time.
>
> Glavo has updated the pull request incrementally with one additional commit since the last revision:
> 
>   add 8310843 to @bug

@minborg Sorry for pinging, but I think this might be of your interest since you've introduced the ByteArray classes.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14636#issuecomment-1612278100


More information about the core-libs-dev mailing list