RFR: JDK-8298448: UndefinedBehaviorSanitizer [v8]

Robbin Ehn rehn at openjdk.org
Tue Dec 13 16:59:02 UTC 2022


On Tue, 13 Dec 2022 16:29:59 GMT, Justin King <jcking at openjdk.org> 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?

It will take a while, look a bit on align issue, we have so much code which go from pointer to large -> small -> large, e.g.

    address addr = data() + offset;
    return (ImmutableOopMap*) addr;

In this case data() needs to return something with the same alignment as a ptr and offset must be in even in ptr steps.

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

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



More information about the build-dev mailing list