RFR: 8310843: Reimplement ByteArray and ByteArrayLittleEndian with Unsafe [v7]
Glavo
duke at openjdk.org
Mon Jun 26 17:17:36 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.
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 12 additional commits since the last revision:
- 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
- delete extraneous whitespace
- ... and 2 more: https://git.openjdk.org/jdk/compare/b293be1a...2b5a4b01
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/14636/files
- new: https://git.openjdk.org/jdk/pull/14636/files/217caa3c..2b5a4b01
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=14636&range=06
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=14636&range=05-06
Stats: 1887 lines in 77 files changed: 902 ins; 676 del; 309 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