RFR: 8367129: Move input validation checks to Java for java.lang.StringLatin1 intrinsics
Volkan Yazici
vyazici at openjdk.org
Mon Feb 9 21:29:18 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.
-------------
Commit messages:
- More doc updates
- Reflect that `VerifyIntrinsicChecks` is removed
- Merge remote-tracking branch 'upstream/master' into sLatin1Intr
- Fix `Helper`
- Guard `equals` intrinsic
- Cosmetic improvements
- Guard `indexOf` intrinsics
- Document `StringLatin1`
- Guard `inflate`/`compress` intrinsics
- Guard `compareTo` intrinsics
Changes: https://git.openjdk.org/jdk/pull/28832/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28832&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8367129
Stats: 554 lines in 5 files changed: 457 ins; 16 del; 81 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