On Fri, 9 Dec 2022 14:34:37 GMT, Erik Joelsson <er...@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