-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8361842: Move input validation checks to Java for java.lang.StringCoding intrinsics #25998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
vy
wants to merge
31
commits into
openjdk:master
Choose a base branch
from
vy:strIntrinCheck
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+414
−108
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
ac5df9f
Move `StringCoding::countPositives` checks from C++ to Java
vy 1498824
Apply review feedback
vy 196fc5d
Add `StringCodingCountPositives` benchmark
vy 9932dd3
Improve intrinsics in `StringCoding`
vy 14275e5
Remove `StringCodingCountPositives`, `String{En,De}code` already cove…
vy b9a6adf
Fix `EUC_JP.java.template` broken due to `encodeASCII` rename
vy 6af9864
Merge remote-tracking branch 'upstream/master' into strIntrinCheck
vy c331fbf
Improve wording of the `VerifyIntrinsicChecks` flag
vy b60ff45
Remove Markdown-styling in comments
vy 7c042b3
Minimize the number of touched lines in `vmIntrinsics.hpp`
vy 2672f7c
Apply review feedback (styling changes)
vy 85f1986
Merge remote-tracking branch 'upstream/master' into strIntrinCheck
vy 2b89e88
Improve `generate_string_range_check` changes
vy bcb073c
Add test verifying the effectiveness of `VerifyIntrinsicChecks`
vy bfc3017
Fix compiler error in `generate_string_range_check`
vy abc0eeb
Duplicate affected tests with `-XX:+VerifyIntrinsicChecks` variants
vy db1ed38
Replace casting with `as_Region()` in `generate_string_range_check`
vy 7a6cd39
Fix out-of-bounds in `sun.nio.cs.SingleByte.Encoder::encodeArrayLoop`
vy 8c712ff
Relax target array capacity check for intrinsic Java wrappers
vy 4016c7a
Disable `TestVerifyIntrinsicChecks` for GraalVM
vy 943f840
Fix `encodeISOArray` bounds checks and Javadoc
vy fb8f6ef
Make `StringCoding` encoding intrinsics lenient
vy f69374f
Merge remote-tracking branch 'upstream/master' into strIntrinCheck
vy 86e3ed8
Remove superseded `@throws` Javadoc
vy 025c7ef
Fix bit shifting
vy 07cd41c
Cap destination array bounds
vy cb4780d
Make source array bound checks lenient too
vy dc5e673
Improve wording of `@param len`
vy 1d02189
Add `@bug` tags
vy e70dfa3
Replace `requireNonNull` with implicit null checks to reduce bytecode…
vy c322f0e
Merge remote-tracking branch 'upstream/master' into strIntrinCheck
vy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.