RFR: 8346954: [JMH] jdk.incubator.vector.MaskedLogicOpts fails due to IndexOutOfBoundsException

Nicole Xu duke at openjdk.org
Wed Feb 26 07:14:55 UTC 2025


On Thu, 20 Feb 2025 09:31:45 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:

> > Sure. Since I am very new to openJDK, I asked my teammate for help to file the follow-up RFE.
> > Here is the https://bugs.openjdk.org/browse/JDK-8350215 with description of the discussed issues.
> 
> Hi @xyyNicole ,
> 
> I have modified the benchmark keeping its essence intact, i.e. to use sufficient number of predicated operations within the vector loop while minimizing the noise due to memory operations. Modified the index computation logic which can now withstand any ARRAYLEN without resulting in an IOOBE. Removed redundant vector read/writes to instance fields, thus eliminating significant boxing penalty which translates into throughput gains.
> 
> Please feel free to include it along with this patch. [MaskedLogicOpts.txt](https://github.com/user-attachments/files/18884093/MaskedLogicOpts.txt)

Hi @jatin-bhateja , 

Thank you for your contributions. I've incorporated your modifications into this patch and made some minor formatting adjustments. 😄

-------------

PR Comment: https://git.openjdk.org/jdk/pull/22963#issuecomment-2684128574


More information about the core-libs-dev mailing list