Integrated: 8337791: VectorAPI jtreg ABSMaskedByteMaxVectorTests crashes with UseAVX=0 -XX:MaxVectorSize=8

Jatin Bhateja jbhateja at openjdk.org
Thu Dec 4 10:20:26 UTC 2025


On Thu, 27 Nov 2025 12:56:08 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:

> This bug patch fixes a crash seen while querying the bottom type of MachTempNode corresponding to [rxmm0 operand](https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/x86/x86.ad#L22509) of blend pattern during late scheduling. Here, MaxVectorSize is contrainted to 8 bytes thus during C2 type system initialization, [TypeVect::VECTX ](https://github.com/openjdk/jdk/blob/master/src/hotspot/share/opto/type.cpp#L719) guarded by target supprted vector size remains uninitialized.
> 
> Its better to reject matching of VectorBlend in such a scenario.
> 
> All exisitng VectorAPI jtreg tests are passing with -XX:UseAVX=0 and -XX:MaxVectorSize=8
> 
> Kindly review and share your feedback.
> 
> Best Regards,
> Jatin

This pull request has now been integrated.

Changeset: 91c5bd55
Author:    Jatin Bhateja <jbhateja at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/91c5bd550a36e10e8b39d1b322fd433ee8df14f5
Stats:     59 lines in 2 files changed: 59 ins; 0 del; 0 mod

8337791: VectorAPI jtreg ABSMaskedByteMaxVectorTests crashes with UseAVX=0 -XX:MaxVectorSize=8

Reviewed-by: epeter, sviswanathan, dlunden

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

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


More information about the hotspot-compiler-dev mailing list