Integrated: 8344104: TestMergeStores fails with ArrayIndexOutOfBoundException

Emanuel Peter epeter at openjdk.org
Fri Nov 15 07:36:24 UTC 2024


On Wed, 13 Nov 2024 15:34:07 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

> Test-bug: `RANDOM.nextInt()` would occasionally return a `min_int`. And sadly this overflows: `Math.abs(min_int) == min_int`. Wen we calculate it `% 100`, it still gives us a negative value, and we end up out of bounds. Fixed with a mask.

This pull request has now been integrated.

Changeset: 21966942
Author:    Emanuel Peter <epeter at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/21966942b6b5341d0d221d10c3eaa629e543d017
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8344104: TestMergeStores fails with ArrayIndexOutOfBoundException

Reviewed-by: shade, chagedorn, dlong

-------------

PR: https://git.openjdk.org/jdk/pull/22080


More information about the hotspot-compiler-dev mailing list