On Mon, 12 Dec 2022 10:42:22 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.
>
> Justin King has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Simplify logic for including __ubsan_default_options
>   
>   Signed-off-by: Justin King <jck...@google.com>

Correct. We will be able to turn it on by default and enforce it, if w so
choose, for everything.

On Tue, Dec 13, 2022, 8:01 PM Andrew Haley ***@***.***> wrote:

> I guess the advantage to putting this in the build machinery (as opposed
> to using
> --with-extra-cflags=-fsanitize=undefined
> --with-extra-ldflags=-fsanitize=undefined) is that we can turn some of
> these onn by default once we've fixed each category of UB. Is that right?
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/openjdk/jdk/pull/11604#issuecomment-1348688955>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAHTURUVY3ID7BA6BF77WZ3WNCCCVANCNFSM6AAAAAASY75DP4>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>

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

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

Reply via email to