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

Alan Bateman alanb at openjdk.org
Thu Jul 20 13:37:44 UTC 2023


On Thu, 20 Jul 2023 10:29:25 GMT, Chen Liang <liach at openjdk.org> wrote:

> The Unsafe-based writing will be used by `Integer.toString` and `Long.toString` as well; in those cases, will creating a ByteBuffer wrapper be overkill?

Integer/Long are very core classes so I assume they can use Unsafe if needed, they probably want as few dependences as possible.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14636#discussion_r1269469885


More information about the core-libs-dev mailing list