RFR: 8310843: Reimplement ByteArray and ByteArrayLittleEndian with Unsafe

Chen Liang liach at openjdk.org
Thu Jul 20 10:33:44 UTC 2023


On Thu, 20 Jul 2023 09:51:49 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> 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?

Good point. Not only that, `ClassReaderImpl` should be migrated to read U2/S2 and U4/S4 via `ByteBuffer` as well.

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

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


More information about the core-libs-dev mailing list