On Fri, 24 Jul 2026 14:48:32 GMT, Jorn Vernee <[email protected]> wrote:

> The point I'm trying to make (and Chen as well I think), is that we should do 
> the additional fixup in the Java code immediately enclosing the intrinsic 
> stub, instead of 'exporting' that as an internal API.

Intrinsic guidelines recommend shaping intrinsic-related code into safe and 
unsafe tightly coupled counterparts where unsafe part is well-known to the JVM 
while "safe" wrappers perform necessary pre-/post-processing and are used 
outside. The wrapper is the best place for fixup logic.

I'm perfectly fine to turn `ArraysSupport.vectorizedMismatch` into a wrapper 
(around a private intrinsified method) which is forbidden to return anything 
besides "> -1" values.

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

PR Comment: https://git.openjdk.org/jdk/pull/31802#issuecomment-5096081942

Reply via email to