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
8265984: Concurrent GC: Some tests fail "assert(is_frame_safe(f)) failed: Frame must be safe" #3814
Conversation
👋 Welcome back pliden! A progress list of the required criteria for merging this PR into |
/cc hotspot-gc |
@pliden |
…led: Frame must be safe"
32d916d
to
75d67a7
Compare
@@ -1377,7 +1377,7 @@ address OptoRuntime::handle_exception_C(JavaThread* current) { | |||
// deoptimized frame | |||
|
|||
if (nm != NULL) { | |||
RegisterMap map(current, false /* update_map */, false /* process_frames */); | |||
RegisterMap map(current, false); |
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.
Should you add MACOS_AARCH64_ONLY(ThreadWXEnable wx(WXWrite, current));
here, as you suggested in CR?
Seems the code change is inconsistent with the comments above.
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.
I reverted back to exactly what we used to do here prior to JDK-8265702, to avoid affecting anything but ZGC. I'm placing the ThreadWXEnable in the ZGC nmethod barrier since we want these as close to the patching code as possible, and we can end up in there through multiple paths.
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.
I see. Thanks.
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.
@pliden 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 20 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 |
Thanks all for reviewing! /integrate |
@pliden Since your change was applied there have been 21 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 194bcec. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
JDK-8265702 introduced a change in
OptoRuntime::handle_exception_C()
where it no longer processed frames when asking for the caller. This change turned out to cause intermittent test failures. We shouldn't have to process frames here, since we're not touching any oops, but it seems that processing frames here avoids some other issue. To avoid noise in out testing I suggest we revert to processing frames here for now (and add the required ThreadWXEnable for macos/aarch64), while we continue to investigate why this is needed.Testing: Passed tier1-7 on linux/x86 and macos/aarch64
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/3814/head:pull/3814
$ git checkout pull/3814
Update a local copy of the PR:
$ git checkout pull/3814
$ git pull https://git.openjdk.java.net/jdk pull/3814/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3814
View PR using the GUI difftool:
$ git pr show -t 3814
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/3814.diff