RFR: 8331731: ubsan: relocInfo.cpp:155:30: runtime error: applying non-zero offset 18446744073709551614 to null pointer

Matthias Baesken mbaesken at openjdk.org
Wed May 29 09:37:07 UTC 2024


On Wed, 29 May 2024 09:19:34 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> val needs an unsigned type to avoid undefined behavior because of signed integer overflow. I'd use uintptr_t.

Makes sense to use something unsigned.
Any good place(s) where to put those templates? For now I would just simply put them into relocInfo.hpp (we can used them if we need to reuse them somewhere else) .

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

PR Comment: https://git.openjdk.org/jdk/pull/19424#issuecomment-2136973805


More information about the hotspot-compiler-dev mailing list