RFR: 8339290: Optimize ClassFile Utf8EntryImpl#writeTo [v17]

Chen Liang liach at openjdk.org
Wed Sep 4 18:10:20 UTC 2024


On Wed, 4 Sep 2024 11:54:48 GMT, Claes Redestad <redestad at openjdk.org> wrote:

>> Let’s not add this, because normal logic should not pay the cost for abnormal logic
>
> Agreed in principle, but not sure the cost of this quick fail-fast sanity test would be noticeable?

If we add this, we should add this before the `countNonZeroAscii` call. Let's leave it as-is.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20772#discussion_r1744222112


More information about the core-libs-dev mailing list