-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8334618: ubsan: support setting additional ubsan check options #19802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
|
@MBaesken This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 73 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
|
I'm not very fond of adding new configure options, but I guess this is ok. A thought, rather than a raw AC_ARG_WITH, newer code should try to adopt UTIL_ARG_WITH instead, for example: UTIL_ARG_WITH(NAME: additional-ubsan-checks, TYPE: string, DEFAULT: [], DESC: [Custom ubsan checks], OPTIONAL: true)
UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment $ADDITIONAL_UBSAN_CHECKS"More information about UTIL_ARG_WITH and friends can be found in their implementation documentation here: Line 579 in 5cad0b4
|
|
Thanks for the advice, UTIL_ARG_WITH makes the change much smaller. |
erikj79
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic looks ok, but I would prefer if you could break up the lines a bit.
|
I adjusted the lines a bit. |
|
[Just a drive-by comment, not a review and not planning to review.] |
|
Stupid question, could I not just pass |
Technically probably yes, but wouldn't that be cflags AND cxxflags ? |
Your idea is more flexible (you can not just add something but overwrite the existing settings). |
tstuefe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
|
We could have both |
|
Note: My "Custom ubsan checks" description was just a placeholder for you to replace, I think the original description you had for it was better |
|
I should also add that it's been quite a while since I implemented the fix for the UTIL_XXX utilities, does using UTIL_ARG_WITH in this case work in the way you want it to? If not, I might need to take a look at them again in case they've regressed since the fix |
What are the preferences of the others ? Yeah it might be useful indeed (Kim proposed a flag for replacing the checks in the other JBS issue). |
RealLucy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me, changes look good.
|
Thanks for the reviews ! /integrate |
|
Going to push as commit efb905e.
Your commit was automatically rebased without conflicts. |
Sometimes it would be helpful to have configure-support for adding additional ubsan check options.
E.g. support new configure option '--with-additional-ubsan-checks=' .
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19802/head:pull/19802$ git checkout pull/19802Update a local copy of the PR:
$ git checkout pull/19802$ git pull https://git.openjdk.org/jdk.git pull/19802/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 19802View PR using the GUI difftool:
$ git pr show -t 19802Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19802.diff
Webrev
Link to Webrev Comment