RFR: 8376187: [VectorAPI] Define new lane type constants and pass them to intrinsic entries

Quan Anh Mai qamai at openjdk.org
Thu Jan 29 09:10:55 UTC 2026


On Thu, 29 Jan 2026 09:02:29 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:

>> src/hotspot/share/prims/vectorSupport.hpp line 140:
>> 
>>> 138:   };
>>> 139: 
>>> 140:   enum {
>> 
>> Please use a scoped enum instead.
>
> Its contained in VectorSupport class which makes it implicitly scoped for external uses without being a named (scoped) enum

I mean an `enum class`. With this we just pass `int` around which is not recommended.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29481#discussion_r2740638154


More information about the core-libs-dev mailing list