RFR: 8367129: Move input validation checks to Java for java.lang.StringLatin1 intrinsics [v5]
Raffaello Giulietti
rgiulietti at openjdk.org
Tue Feb 17 16:25:09 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/d32e3104...6eb75a06
I also checked that all references to `vmIntrinsics::` in the intrinsic methods comments are correct.
LGTM
-------------
Marked as reviewed by rgiulietti (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/28832#pullrequestreview-3814952941
More information about the core-libs-dev
mailing list