[vectorIntrinsics+mask] RFR: 8271539: Add masking support for load/store from/into byte array/buffer

Xiaohong Gong xgong at openjdk.java.net
Thu Aug 5 01:22:45 UTC 2021


On Wed, 4 Aug 2021 15:58:44 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> I browsed through but need to go through in more detail, but i have a question. You fixed an issue with `AbstractMask.checkIndexByLane`. I am wondering if our tests are insufficient or that this change exposed a bug and the tests previously passed because the fallback correctly failed when accessing out-of-bounds?

Yes, I think this change exposed this issue and the tests previously passed because the default java implementation could throw the expected IOOB exception. The original masked ` intoByteArray/intoByteBuffer` APIs are not vectorized.

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

PR: https://git.openjdk.java.net/panama-vector/pull/107


More information about the panama-dev mailing list