8350682: [JMH] vector.IndexInRangeBenchmark failed with IndexOutOfBoundsException for size=1024#23783
8350682: [JMH] vector.IndexInRangeBenchmark failed with IndexOutOfBoundsException for size=1024#23783IvaVladimir wants to merge 1 commit intoopenjdk:masterfrom
Conversation
…dsException for size=1024
|
👋 Welcome back vaivanov! A progress list of the required criteria for merging this PR into |
|
@IvaVladimir This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 85 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@XiaohongGong, @dwhite-intel, @sviswa7) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
@IvaVladimir The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
|
Hi @IvaVladimir , thank you for fixing this benchmark. Could you please tell more information about the IOOBE crash (e.g. |
I guess it happens when the parameter |
|
Yes, exceptions reported for runs with size=1024. The test support max size=512 and have no checks for passed params. |
The change makes sense to me. Thanks for your fixing! |
| @Setup(Level.Trial) | ||
| public void Setup() { | ||
| mask = new boolean[512]; | ||
| mask = new boolean[size + 64]; |
There was a problem hiding this comment.
Any reason, for this to be "size + 64" instead of "size"?
There was a problem hiding this comment.
This array iterated by steps from 8 to 64. If allocated array less than 64 it throws Exception.
Minimal array size is VectorSpecies for byte class. The constant was used instead of calculation.
|
/integrate Thanks for your review! |
|
@IvaVladimir |
|
/sponsor |
|
Going to push as commit 768b024.
Your commit was automatically rebased without conflicts. |
|
@dwhite-intel @IvaVladimir Pushed as commit 768b024. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Array initialization by parameter was added. Extra constant was used to align cycle step with used arrays.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/23783/head:pull/23783$ git checkout pull/23783Update a local copy of the PR:
$ git checkout pull/23783$ git pull https://git.openjdk.org/jdk.git pull/23783/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 23783View PR using the GUI difftool:
$ git pr show -t 23783Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/23783.diff
Using Webrev
Link to Webrev Comment