RFR: 8346532: XXXVector::rearrangeTemplate misses null check

Quan Anh Mai qamai at openjdk.org
Wed Dec 18 16:30:51 UTC 2024


Hi,

This patch adds the missing null checks to the shuffle arguments of the various `rearrangeTemplate` method. For all other API points, we null check arguments by calling `check` on them. As `rearrange` implementations cast the argument to the concrete type, there is no need for species check, but we still need the null check. This allows the intrinsics to know that the argument is not `null`, as nullable argument makes the method non-intrinsifiable.

Please take a look, thanks a lot.

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

Commit messages:
 - add null checks to shuffle arguments of rearrange

Changes: https://git.openjdk.org/jdk/pull/22816/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22816&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8346532
  Stats: 14 lines in 7 files changed: 7 ins; 0 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/22816.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22816/head:pull/22816

PR: https://git.openjdk.org/jdk/pull/22816


More information about the core-libs-dev mailing list