-
Notifications
You must be signed in to change notification settings - Fork 92
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
8327990: [macosx-aarch64] Various tests fail with -XX:+AssertWXAtThreadSync #580
Conversation
👋 Welcome back rrich! A progress list of the required criteria for merging this PR into |
@reinrich 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 89 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 |
This backport pull request has now been updated with issue from the original commit. |
|
@@ -291,6 +291,7 @@ void JfrStorage::register_full(BufferPtr buffer, Thread* thread) { | |||
JavaThread* jt = JavaThread::cast(thread); | |||
if (jt->thread_state() == _thread_in_native) { | |||
// Transition java thread to vm so it can issue a notify. |
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 don't understand this comment. Why does issuing a notify need WXWrite
?
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.
The comment is preexisting. Issuing notify doesn't need WXWrite
. It needs a thread state transition ThreadInVMfromNative
and that transition requires WXWrite
.
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. I hate the way this code works, but we need it now.
/integrate |
Going to push as commit 8da58b9.
Your commit was automatically rebased without conflicts. |
I would like to backport openjdk/jdk22u@0c57256 to jdk 21 to get clean testing with -XX:+AssertWXAtThreadSync and avoid crashes because the VM is entered with the wrong WXState. The latter is very unlikely nevertheless aiming for clean tests with -XX:+AssertWXAtThreadSync will help to reduce the probability that users are affected by regressions in this area.
Testing:
I've verified every added WXState change if it is actually required.
The fix passed our CI testing with AssertWXAtThreadSync enabled: JTReg tests: tier1-4 of hotspot and jdk. All of Langtools and jaxp. JCK, SPECjvm2008, SPECjbb2015, Renaissance Suite, and SAP specific tests.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/580/head:pull/580
$ git checkout pull/580
Update a local copy of the PR:
$ git checkout pull/580
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/580/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 580
View PR using the GUI difftool:
$ git pr show -t 580
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/580.diff
Webrev
Link to Webrev Comment