8288112: C2: Error: ShouldNotReachHere() in Type::typerr()

Reviewed-by: dlong, kvn
This commit is contained in:
Jatin Bhateja 2022-07-14 01:46:11 +00:00
parent 2bf6285c80
commit fd89ab8dac
9 changed files with 216 additions and 8 deletions

View file

@ -56,6 +56,7 @@ public class Integers {
private int[] intsTiny;
private int[] intsSmall;
private int[] intsBig;
private int[] res;
@Setup
public void setup() {
@ -64,6 +65,7 @@ public class Integers {
intsTiny = new int[size];
intsSmall = new int[size];
intsBig = new int[size];
res = new int[size];
for (int i = 0; i < size; i++) {
strings[i] = "" + (r.nextInt(10000) - (5000));
intsTiny[i] = r.nextInt(99);
@ -146,4 +148,11 @@ public class Integers {
bh.consume(intsBig[i] << intsSmall[i]);
}
}
@Benchmark
public void reverseBytes() {
for (int i = 0; i < size; i++) {
res[i] = Integer.reverseBytes(intsSmall[i]);
}
}
}