`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

Reply via email to