RFR: 8367129: Move input validation checks to Java for java.lang.StringLatin1 intrinsics [v5]

Roger Riggs rriggs at openjdk.org
Tue Feb 17 19:38:29 UTC 2026


On Mon, 16 Feb 2026 19:12:38 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

>> Moves input validation checks to Java for `java.lang.StringLatin1` intrinsics. While doing so, affected `java.lang.StringUTF16` methods needed to be updated due to relaxed checks at intrinsics. The javadocs of the touched methods are extensively overhauled.
>
> Volkan Yazici has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 16 additional commits since the last revision:
> 
>  - Merge remote-tracking branch 'upstream/master' into sLatin1Intr
>  - Remove redundant checks in `indexOf0(byte[] value, byte[] str)`
>  - More `indexOf` et al. guards and other review feedback
>  - Use `vmIntrinsics::*` to refer to intrinsics from Java
>  - Improve vertical alignment in `vmIntrinsics.hpp`
>  - Apply review feedback
>  - More doc updates
>  - Reflect that `VerifyIntrinsicChecks` is removed
>  - Merge remote-tracking branch 'upstream/master' into sLatin1Intr
>  - Fix `Helper`
>  - ... and 6 more: https://git.openjdk.org/jdk/compare/7f1f87f7...6eb75a06

looks good.

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

Marked as reviewed by rriggs (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28832#pullrequestreview-3815901802


More information about the core-libs-dev mailing list