8377355: VectorAPI source generation broken after JDK-8371187

Reviewed-by: liach, jbhateja
This commit is contained in:
Varada M 2026-02-10 07:28:04 +00:00
parent 996ca4b44b
commit b8088941c8
2 changed files with 16 additions and 1 deletions

View File

@ -4105,7 +4105,6 @@ public abstract class ByteVector extends AbstractVector<Byte> {
return this;
}
/*package-private*/
@Override
@ForceInline
final

View File

@ -5393,6 +5393,22 @@ public abstract class $abstractvectortype$ extends AbstractVector<$Boxtype$> {
return this;
}
@Override
@ForceInline
final
$abstractvectortype$ swapIfNeeded(AbstractSpecies<?> srcSpecies) {
#if[byte]
return this;
#else[byte]
int subLanesPerSrc = subLanesToSwap(srcSpecies);
if (subLanesPerSrc < 0) {
return this;
}
VectorShuffle<$Boxtype$> shuffle = normalizeSubLanesForSpecies(this.vspecies(), subLanesPerSrc);
return ($abstractvectortype$) this.rearrange(shuffle);
#end[byte]
}
static final int ARRAY_SHIFT =
31 - Integer.numberOfLeadingZeros(Unsafe.ARRAY_$TYPE$_INDEX_SCALE);
static final long ARRAY_BASE =