On Wed, 4 Feb 2026 18:13:08 GMT, Quan Anh Mai <[email protected]> wrote:
>> Jatin Bhateja has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> Review comments resolution
>
> src/hotspot/share/prims/vectorSupport.hpp line 141:
>
>> 139:
>> 140: // Values in this enum correspond to the
>> jdk.incubator.vector.LaneType ordinal values.
>> 141: enum LaneType {
>
> Please specify the underlying type of this enum: `enum LaneType : int`.
> Otherwise, this will not work:
>
> VectorSupport::LaneType vltype =
> static_cast<VectorSupport::LaneType>(laneType->get_con());
>
> It is because casting an integer to an unscoped enum is UB if
> `laneType->get_con()` does not fit into the range of the enum values.
Thanks @merykitty , addressed.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29481#discussion_r2767032912