On Mon, 12 Dec 2022 05:59:19 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:
> 
>   Remove UBSAN_ENABLED From spec.gmk.in

src/java.base/share/native/launcher/main.c line 38:

> 36: 
> 37: #ifdef UNDEFINED_BEHAVIOR_SANITIZER
> 38: // Override weak symbol exposed by UBSan to override default options. 
> This is called by UBSan

Please explain why we need to override the default options.

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

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

Reply via email to