-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
JDK-8327971: Multiple ASAN errors reported for metaspace #18230
JDK-8327971: Multiple ASAN errors reported for metaspace #18230
Conversation
👋 Welcome back stuefe! A progress list of the required criteria for merging this PR into |
Webrevs
|
@lgxbslgx Okay, I moved the code around. Would appreciate for this PR to be done quickly, since there are follow up PRs and its really not that complex. |
I just provided some thoughts or suggestions based on my understanding. If my understanding is not right or low, please ignore it. Thanks again for your guidance. |
No problem. Thank you for your review. |
@tstuefe 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
friendly ping @jcking maybe? |
@tstuefe |
Ping... |
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.
Hi,
It seems like we only disable code which is relevant for debug build diagnostics, tests, or code otherwise used for debugging (print_location
). Considering this, and ASAN's role in finding bugs in production code, it seems reasonable to do these changes.
So I'm approving this.
Many thanks, @jdksjolen! |
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.
Looks good, just one small question.
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.
Looks good now, thanks!
Thanks, Roman! /integrate |
Going to push as commit 9e566d7.
Your commit was automatically rebased without conflicts. |
We have multiple issues that cause the ASAN build in fastdebug to not work, or to fail gtests.
This causes some problems since within metaspace, we access memory that is committed but not yet handed to the user (for zapping or for verification in debug builds). So, from the ASANs' view, those accesses are invalid, whereas for Metaspace, those accesses are perfectly valid.
In these cases, we need to unpoison the memory or exclude the code section, if possible, for ASAN builds. This affects both JVM code and gtests.
/issue JDK-8327988
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18230/head:pull/18230
$ git checkout pull/18230
Update a local copy of the PR:
$ git checkout pull/18230
$ git pull https://git.openjdk.org/jdk.git pull/18230/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18230
View PR using the GUI difftool:
$ git pr show -t 18230
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18230.diff
Webrev
Link to Webrev Comment