On Wed, 9 Sep 2026 20:44:14 GMT, Chen Liang <[email protected]> wrote:
> The return value of `convert0('X', vspecies().withLanes(laneType))` is
> polymorphic, making the subsequent call `swapIfNeeded` megamorphic and thus
> causing allocations. We have the constant species available and should
> execute code on the species instead.
>
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK
> Interim AI Policy](https://openjdk.org/legal/ai).
Fix looks good to me, I verified that Benchmark included with
https://bugs.openjdk.org/browse/JDK-8391913 no longer regresses. It will be
good to include that benchmark in this patch.
Marked as reviewed by jbhateja (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/32803#pullrequestreview-5165646726
PR Review: https://git.openjdk.org/jdk/pull/32803#pullrequestreview-5165669103