RFR: JDK-8298448: UndefinedBehaviorSanitizer
Erik Joelsson
erikj at openjdk.org
Fri Dec 9 20:43:12 UTC 2022
On Fri, 9 Dec 2022 14:34:37 GMT, Erik Joelsson <erikj at 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.
>
> make/autoconf/jdk-options.m4 line 450:
>
>> 448: ###############################################################################
>> 449: #
>> 450: # UndefinedBehaviorSanitizer
>
> I think this logic fits better in `flags.m4`, otherwise this looks ok to me.
Ah now I understand that this compiles runtime checks into the product. In that case it does actually fit well into jdk-options.m4, so you can leave it there.
-------------
PR: https://git.openjdk.org/jdk/pull/11604
More information about the build-dev
mailing list