File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
test/micro/org/openjdk/bench/vm/lang Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ int instanceOfInterfaceSwitch() {
178178 probe ^= probe << 13 ; // xorshift
179179 probe ^= probe >>> 17 ;
180180 probe ^= probe << 5 ;
181- dummy += switch (objectArray [Math . abs (probe ) % objectArray .length ]) {
181+ dummy += switch (objectArray [(probe & Integer . MAX_VALUE ) % objectArray .length ]) {
182182 case I01 inst -> 1 ;
183183 case I02 inst -> 2 ;
184184 case I03 inst -> 3 ;
@@ -192,7 +192,7 @@ int instanceOfInterfaceSwitch() {
192192 probe ^= probe << 13 ; // xorshift
193193 probe ^= probe >>> 17 ;
194194 probe ^= probe << 5 ;
195- dummy += switch (objectArray [Math . abs (probe ) % objectArray .length ]) {
195+ dummy += switch (objectArray [(probe & Integer . MAX_VALUE ) % objectArray .length ]) {
196196 case I18 inst -> 8 ;
197197 case I17 inst -> 7 ;
198198 case I16 inst -> 6 ;
You can’t perform that action at this time.
0 commit comments