RFR: 8310843: Reimplement ByteArray and ByteArrayLittleEndian with Unsafe
Glavo
duke at openjdk.org
Sat Jun 24 09:16:15 UTC 2023
`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.
-------------
Commit messages:
- use Preconditions.AIOOBE_FORMATTER
- delete extraneous whitespace
- delete extraneous whitespace
- get/set unsigned int
- Reimplement ByteArray and ByteArrayLittleEndian with Unsafe
Changes: https://git.openjdk.org/jdk/pull/14636/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14636&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8310843
Stats: 268 lines in 2 files changed: 135 ins; 64 del; 69 mod
Patch: https://git.openjdk.org/jdk/pull/14636.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/14636/head:pull/14636
PR: https://git.openjdk.org/jdk/pull/14636
More information about the core-libs-dev
mailing list