RFR: 8304674: File java.c compile error with -fsanitize=address -O0

SendaoYan syan at openjdk.org
Tue Nov 26 01:45:37 UTC 2024


On Mon, 25 Nov 2024 07:11:25 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Do you mean that the `if (JNI_TRUE)` block which has the `return ret;` wouldn't be used by the preprocessor when using `-O0`?

I make a misunderstand for the do-while(false) loop prior. Actually the do-while(false) loop will execute at least once. The PR description has been updated.

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

PR Comment: https://git.openjdk.org/jdk/pull/22355#issuecomment-2499399621


More information about the core-libs-dev mailing list