RFR: 8325340: Add ASCII fast-path to Data-/ObjectInputStream.readUTF

Claes Redestad redestad at openjdk.org
Tue Feb 13 21:36:03 UTC 2024


On Tue, 6 Feb 2024 23:01:07 GMT, Chen Liang <liach at openjdk.org> wrote:

>> I get warnings and build failures if I leave out those casts (`utflen` is a `long`)
>
> Ah, I meant to use the equivalent local variable int ascii, the return value of countPositives, to avoid these casts.

Missed this comment, but ended up doing like you suggested.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17734#discussion_r1488613636


More information about the core-libs-dev mailing list