RFR: 8310843: Reimplement ByteArray and ByteArrayLittleEndian with Unsafe

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Jul 20 09:54:55 UTC 2023


On Sat, 24 Jun 2023 09:02:59 GMT, Chen Liang <liach at openjdk.org> wrote:

> The reimplementation allows parts that invoke package depend on to utilize faster byte array access, namely bytecode generation and Classfile API; which IMO is more important than the reduction on startup time.

Is `BufWriterImpl` what you are looking to refactor using this class? Any reason why that implementation doesn't internally rely on a ByteBuffer, rather than a plain array?

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

PR Comment: https://git.openjdk.org/jdk/pull/14636#issuecomment-1643621178


More information about the core-libs-dev mailing list