> `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 16 additional commits since the last revision: - Merge branch 'openjdk:master' into unsafe - Merge branch 'openjdk:master' into unsafe - add 8310843 to @bug - 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 - ... and 6 more: https://git.openjdk.org/jdk/compare/d1e02f97...6560d358 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/14636/files - new: https://git.openjdk.org/jdk/pull/14636/files/cb56e736..6560d358 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=14636&range=10 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14636&range=09-10 Stats: 188052 lines in 4685 files changed: 89964 ins; 47362 del; 50726 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