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

Thomas Stuefe stuefe at openjdk.org
Thu Jun 13 19:38:15 UTC 2024


On Thu, 13 Jun 2024 15:48:55 GMT, Matthias Baesken <mbaesken 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) ?
> 
> 

no problem, but i would remove the comment about avoiding adding to null.

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

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


More information about the hotspot-runtime-dev mailing list