-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8309675: Generational ZGC: compiler/gcbarriers/UnsafeIntrinsicsTest.java fails in nmt_commit #14382
Conversation
…ava fails in nmt_commit
👋 Welcome back stefank! A progress list of the required criteria for merging this PR into |
The reason why this only happens on this test is that -XX:+ZVerifyOops is only turned on in this test. |
To understand the fix see the function I'm replacing:
and the verification code in this function:
The crash happens because of the dereferenceable_test, which checks that the memory have been committed and is accessible. As described in nmt_commit, we fake the address we report to NMT, so we can't try to dereference the contents of that address. |
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.
Guess this hit the dereference test.
Could probably use zaddress_unsafe
as well?
Either solution works.
Yes, that's a good suggestion, though I think I'd prefer to stick with the current solution because then it is more clear that the code matches the comment in nmt_commit. Thanks for reviewing! |
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.
Thumbs up. Yet another disconnect between NMT virtual memory
modeling versus Z virtual memory modeling?
Did you run the revised test on all Tier3 platforms? |
@stefank 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 2 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Thanks for reviewing. Yes, in away. It's the workaround for this disconnect that triggered our verification code, which in turn found our workaround with the fake addresses. :) |
I'm running tier1-7 with Generational ZGC. There's just a few more tests running, so I'm on the verge of integrating this. |
/integrate |
The failure happens because we have extra verification code that is incorrect to use when calling the NMT tracking code.
The fix is to simply inline the address calculation code without the verification code.
This fixes a tier3 failure. I'm going to run this through more extensive testing but it would be good to get this reviewed.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/14382/head:pull/14382
$ git checkout pull/14382
Update a local copy of the PR:
$ git checkout pull/14382
$ git pull https://git.openjdk.org/jdk.git pull/14382/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 14382
View PR using the GUI difftool:
$ git pr show -t 14382
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/14382.diff
Webrev
Link to Webrev Comment