RFR: 8367129: Move input validation checks to Java for java.lang.StringLatin1 intrinsics [v5]
Volkan Yazici
vyazici at openjdk.org
Mon Feb 16 19:12:38 UTC 2026
> 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/87c57222...6eb75a06
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/28832/files
- new: https://git.openjdk.org/jdk/pull/28832/files/7efdc944..6eb75a06
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=28832&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=28832&range=03-04
Stats: 26826 lines in 591 files changed: 12839 ins; 3596 del; 10391 mod
Patch: https://git.openjdk.org/jdk/pull/28832.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28832/head:pull/28832
PR: https://git.openjdk.org/jdk/pull/28832
More information about the core-libs-dev
mailing list