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>

I like this approach better in principle. Not sure about the location of the 
file - the build folk will no doubt have more to say on that. Can we not just 
have a single file and use:

#ifdef __cplusplus
extern "C" {
#endif

?
Thanks.

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

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

Reply via email to