File tree 1 file changed +2
-2
lines changed
test/micro/org/openjdk/bench/vm/lang
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ int instanceOfInterfaceSwitch() {
178
178
probe ^= probe << 13 ; // xorshift
179
179
probe ^= probe >>> 17 ;
180
180
probe ^= probe << 5 ;
181
- dummy += switch (objectArray [Math . abs (probe ) % objectArray .length ]) {
181
+ dummy += switch (objectArray [(probe & Integer . MAX_VALUE ) % objectArray .length ]) {
182
182
case I01 inst -> 1 ;
183
183
case I02 inst -> 2 ;
184
184
case I03 inst -> 3 ;
@@ -192,7 +192,7 @@ int instanceOfInterfaceSwitch() {
192
192
probe ^= probe << 13 ; // xorshift
193
193
probe ^= probe >>> 17 ;
194
194
probe ^= probe << 5 ;
195
- dummy += switch (objectArray [Math . abs (probe ) % objectArray .length ]) {
195
+ dummy += switch (objectArray [(probe & Integer . MAX_VALUE ) % objectArray .length ]) {
196
196
case I18 inst -> 8 ;
197
197
case I17 inst -> 7 ;
198
198
case I16 inst -> 6 ;
You can’t perform that action at this time.
0 commit comments