8287292: Improve TransformKey to pack more kinds of transforms efficiently

Reviewed-by: jlaskey, jvernee, mchung
This commit is contained in:
Claes Redestad 2022-05-27 12:10:40 +00:00
parent 777f813e9b
commit be93318576
2 changed files with 104 additions and 55 deletions

View file

@ -222,10 +222,10 @@ class LambdaForm {
return basicType(type).btChar;
}
static byte[] basicTypesOrd(Class<?>[] types) {
byte[] ords = new byte[types.length];
static int[] basicTypesOrd(Class<?>[] types) {
int[] ords = new int[types.length];
for (int i = 0; i < ords.length; i++) {
ords[i] = (byte)basicType(types[i]).ordinal();
ords[i] = basicType(types[i]).ordinal();
}
return ords;
}