RFR: 8346954: [JMH] jdk.incubator.vector.MaskedLogicOpts fails due to IndexOutOfBoundsException
Jatin Bhateja
jbhateja at openjdk.org
Thu Feb 20 09:33:59 UTC 2025
On Tue, 18 Feb 2025 03:50:19 GMT, Nicole Xu <duke 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)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22963#issuecomment-2670932944
More information about the core-libs-dev
mailing list