On Fri, 9 Dec 2022 06:53:31 GMT, Justin King <jck...@openjdk.org> wrote:

> Allow building OpenJDK with UBSan. Currently the build fails when optimizing 
> the image due to lots of undefined behavior (it invokes the built JVM). 
> Follow up PRs will either replace the undefined behavior with well defined 
> behavior or suppress errors which are intentional. The goal is to make 
> OpenJDK more well defined and thus more portable across compilers and 
> architectures.

I'm really pleased to see this.

Im working on https://github.com/openjdk/jdk/pull/10920, which fixes the last 
of the null pointer dereferences in x86/AArch64 HotSpot. Once that's done I'm 
thinking of enabling `-fsanitize=null` by default in debug builds, as long as 
it's not too slow.

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

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

Reply via email to