RFR: 8256973: Intrinsic creation for VectorMask query (lastTrue, firstTrue, trueCount) APIs

Paul Sandoz psandoz at openjdk.java.net
Tue May 11 15:22:53 UTC 2021


On Fri, 7 May 2021 17:45:26 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:

>> src/jdk.incubator.vector/share/classes/jdk/incubator/vector/AbstractMask.java line 147:
>> 
>>> 145: 
>>> 146:     /*package-private*/
>>> 147:     static int trueCountHelper(boolean[] bits) {
>> 
>> Naming-wise i think you can drop `Helper` from such methods.
>
> This is indeed a Helper routine called from the lambda expression.

Although we don't use that naming pattern in other places for the fallback Java code. It's just the scalar implementation.

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

PR: https://git.openjdk.java.net/jdk/pull/3916


More information about the hotspot-compiler-dev mailing list