RFR: 8332818: ubsan: archiveHeapLoader.cpp:70:27: runtime error: applying non-zero offset 18446744073707454464 to null pointer

Matthias Baesken mbaesken at openjdk.org
Thu Jun 13 15:51:13 UTC 2024


On Thu, 13 Jun 2024 04:57:20 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Pity that we cannot selectivly switch off UB cases with the compiler, and have to decorate code instead.

We can switch off whole  ubsan problem/issue 'classes'  (and do this already for some types of shifts).  But this is of course not fine granular if done for the whole codebase.

Btw any objections integrating this now (and doing in the follow up the ATTRIBUTE_NO_UBSAN macro, see https://bugs.openjdk.org/browse/JDK-8334239) ?

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

PR Comment: https://git.openjdk.org/jdk/pull/19597#issuecomment-2166065036


More information about the hotspot-runtime-dev mailing list