-
Notifications
You must be signed in to change notification settings - Fork 752
Add JVMTI_EVENT_MONITOR_WAIT/ED event trigger for virtual threads #21590
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
@babsingh please take a look |
local testing of the failed test case passed on amac |
The top commit in https://github.com/babsingh/openj9/commits/monitorWaitHook has my code review; some of which @keithc-ca has already mentioned above. Let's not add fixes 21400 in the commit message since the test would need to be excluded before the issue is closed. #21402 should also pass with these changes, but it still fails. |
#21402 is still failing because the hook is suppressed by |
de8ac54
to
3a3e0c7
Compare
I think I've found the root cause here, the call to In order to fix this issue, we must ensure that all event hooks which should be posted for vthreads must occur before or after the critical region. so that the stack/thread data is in a walkable state. I will re-work this PR to correctly handle the framehide and critical transition region. |
8e35771
to
0c73455
Compare
@fengxue-IS There is a merge conflict, which needs to be resolved. |
0c73455
to
e50caa5
Compare
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.
Changes LGTM. Passing to @keithc-ca for review/merge.
@keithc-ca are you okay with this PR or is there anything you would suggest changing? |
3e05b14
to
f72ee8e
Compare
75f3526
to
9cd2de3
Compare
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.
Please rebase to avoid implicit merges with other changes (e.g. #21611).
Signed-off-by: Jack Lu <[email protected]>
- Move ContendedMonitorEnter before critical region - Correct virtualThreadHideFrames scope Signed-off-by: Jack Lu <[email protected]>
9cd2de3
to
fdf72cd
Compare
Jenkins test sanity zlinux jdk24 |
I was awaiting the results from https://openj9-jenkins.osuosl.org/job/Grinder/4266 which failed. |
This is a separate issue unrelated to this PR. The test is RI specific; it will need to be updated for OpenJ9. @fengxue-IS has this task in his backlog; he will be creating extension repo PRs to fix it.
|
That test should have been updated and verified to pass before this was merged. |
The test is excluded. It doesn't make a difference. Fixes can go in asynchronously since the test is excluded. |
Yes, the test is excluded, but this claimed to fix the problem, but does not. |
It does fix the issue documented in #21400 by adding support for the JVMTI events. The failure in #21590 (comment) is a separate issue tracked under #21402. |
Fixes: #21400