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

Vladimir Kozlov kvn at openjdk.org
Wed May 29 22:07:00 UTC 2024


On Wed, 29 May 2024 09:34:32 GMT, Matthias Baesken <mbaesken 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) .

I would suggest `utilities/globalDefinitions.hpp` somewhere near ` pointer_delta*()`

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

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


More information about the hotspot-compiler-dev mailing list