> `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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 13 additional commits since the last revision: - Merge branch 'openjdk:master' into unsafe - Merge branch 'openjdk:master' into unsafe - delete incorrect comments - delete extraneous whitespace - add javadoc - delete extraneous whitespace - fix test - update tests - use Preconditions.AIOOBE_FORMATTER - delete extraneous whitespace - ... and 3 more: https://git.openjdk.org/jdk/compare/9e314a37...609170c0 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/14636/files - new: https://git.openjdk.org/jdk/pull/14636/files/2b5a4b01..609170c0 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=14636&range=07 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14636&range=06-07 Stats: 6443 lines in 195 files changed: 2377 ins; 2165 del; 1901 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