Withdrawn: 8332697: ubsan: shenandoahSimpleBitMap.inline.hpp:68:23: runtime error: signed integer overflow: -9223372036854775808 - 1 cannot be represented in type 'long int'

duke duke at openjdk.org
Tue Sep 17 03:44:14 UTC 2024


On Fri, 12 Jul 2024 20:53:04 GMT, Henry Lin <duke at openjdk.org> wrote:

> Cast the result of `nth_bit(n)` to `uintptr_t` to prevent signed integer overflow error reported by `ubsan`. Unsigned overflow is not undefined behavior and is not checked by `ubsan`.

This pull request has been closed without being integrated.

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

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


More information about the hotspot-dev mailing list