RFR: 8339916: AIOOBE due to Math.abs(Integer.MIN_VALUE) in tests
Rémi Forax
forax at openjdk.org
Fri Nov 22 10:40:24 UTC 2024
On Thu, 21 Nov 2024 17:21:07 GMT, Andrew Haley <aph at openjdk.org> wrote:
> Test bug.
>
> Another bug caused by the result of `Math.abs()` being negative. I also tried `floorMod()`, which would have been cleaner, but it increased the runtime of this extremely time-sensitive benchmark.
Let say that the definition of Math.abs() is surprising
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22297#issuecomment-2493443001
More information about the core-libs-dev
mailing list