RFR: 8310843: Reimplement ByteArray and ByteArrayLittleEndian with Unsafe [v3]

Glavo duke at openjdk.org
Sat Jun 24 10:13:06 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 incrementally with one additional commit since the last revision:

  fix test

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/14636/files
  - new: https://git.openjdk.org/jdk/pull/14636/files/8a507b9a..20b7c875

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14636&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14636&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 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