-
Notifications
You must be signed in to change notification settings - Fork 741
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
Implement JVM_VirtualThreadHideFrames() #16654
Conversation
@fengxue-IS FYI Other things to notice:
|
aded17b
to
96014a5
Compare
@fengxue-IS can you please take a look |
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.
minor nit pick on formatting
4f1bffe
to
dc7b5c3
Compare
With the change the events mentioned above are hidden which matches the behaviour to RI. |
ExceptionCatch have known issues in how it is triggered in RI, see #5785.
Have this been confirmed?
JNI events that are equivalent to Java events should also be hidden (those that map the the same |
This is due to openjdk's implementation and is not part of the issue that this PR is trying to fix. Also field access and modification event triggered by JNI is now hidden. |
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.
++ @gacholio for review. |
I modified the VirtualThread.java to try to trigger some events after
No, I don't think there's a related test. |
If the goal here is to hide JVMTI events, the work should really be done in JVMTI, not at the hook dispatch points. Hooks can be used for more than just JVMTI. |
I agree. |
Makes sense, I'll work on that. |
The crash is likely due to a missing check that the vthread is mounted, which would result in NULL carrier thread. Who actually calls this? |
It's called in |
Sorry I just realized I force pushed an old branch, should be fixed now. |
Please squash the commits; this modifies and then reverts changes, e.g. |
bd63e6d
to
906ca1e
Compare
@keithc-ca Squashed and addressed the changes, sorry about the mess. |
@babsingh changing |
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.
Yes, that's a good idea. More testing is always preferred. Adding them to the sanity.functional suite will help us identify breakages early-on. To not delay the merge of this PR, the new tests can added in a separate PR. |
Hide some JVM TI events after notifyJvmtiHideFrames(true) is called. Fixes: eclipse-openj9#16012 Signed-off-by: Gengchen Tuo <gengchen.tuo@ibm.com>
@fengxue-IS Yes |
@keithc-ca all previous review comments have been addressed, can you take another look |
Jenkins test sanity amac jdk17,jdk20 |
The shouldPostEvent check was missed for the JVMTI FramePop event in eclipse-openj9#16654. Signed-off-by: Gengchen Tuo <gengchen.tuo@ibm.com>
Hide some JVM TI events after notifyJvmtiHideFrames(true) is called.
Added a helper to decide whether a event should be dispatched.
Signed-off-by: Gengchen Tuo gengchen.tuo@ibm.com
Fixes: #16012