[vector] RFR 8221816: IndexOutOfBoundsException for fromArray/intoArray with unset mask lanes - was: RE: IndexOutOfBoundsException with unset mask lanes
Joshua Zhu (Arm Technology China)
Joshua.Zhu at arm.com
Wed Apr 3 10:03:08 UTC 2019
Hi,
JBS: https://bugs.openjdk.java.net/browse/JDK-8221816
Webrev: http://cr.openjdk.java.net/~jzhu/vectorapi/8221816.OOB/webrev.00/
(This is a rebase of original webrev [1].)
I have a patch to fix IndexOutOfBoundsException for
fromArray/intoArray/gather/scatter API with unset mask lanes.
To align with API doc, IndexOutOfBoundsException should only be thrown for
any illegal vector lane index where the mask at lane is set.
Also I write a template to generate test cases to cover this kind of exception testing.
This patch has been verified by testing.
[1] http://mail.openjdk.java.net/pipermail/panama-dev/2019-March/004812.html
Best Regards,
Joshua Zhu
More information about the panama-dev
mailing list