-
Notifications
You must be signed in to change notification settings - Fork 714
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
Fix JVMTI methods #16008
Fix JVMTI methods #16008
Conversation
See JVMTI spec, https://download.java.net/java/early_access/jdk19/docs/specs/jvmti.html, for confirmation. |
f1326cb
to
c62e49e
Compare
c62e49e
to
513a4d9
Compare
513a4d9
to
b0defb7
Compare
Similar changes are being added to the JVMTI resume and suspend functions in #15903. |
@gacholio Can you please review these changes? |
getVMThread will throw JVMTI_ERROR_INVALID_THREAD if allowNull is FALSE. Moving ENSURE_JTHREAD check inside getVMThread will simplify the change. Let me give it a try. |
b0defb7
to
2cf1d06
Compare
1a0abc9
to
1ac8c88
Compare
@gacholio Reworked the PR. All earlier comments have been addressed. |
7406037
to
4642a8d
Compare
Will have to retain ENSURE_JTHREAD macro since jvmtiRunAgentThread does not use getVMThread. |
4642a8d
to
f40fb61
Compare
b12fb29
to
003df7c
Compare
e5682d0
to
5711401
Compare
@gacholio The previous feedback has been addressed. This is ready for review. |
b0f78b8
to
ae0b96d
Compare
- Return JVMTI_ERROR_INVALID_THREAD if the input thread parameter is not a thread object. - Consolidate j.l.Thread and j.l.VirtualThread error-checking within getVMThread. This avoids repeated NULL checking and potentially fetching the current thread. - Convert getVMThread's boolean input parameters to a bit field. - More verbose naming used to avoid ambiguity: IS_JAVA_LANG_THREAD and IS_JAVA_LANG_VIRTUALTHREAD. Fixes: eclipse-openj9#15986 Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
ae0b96d
to
f0c5ffc
Compare
jenkins test sanity win jdk8 |
jenkins test sanity zlinux jdk19 |
not a thread object.
getVMThread. This avoids repeated NULL checking and potentially
fetching the current thread.
and IS_JAVA_LANG_VIRTUALTHREAD.
Fixes: #15986
Signed-off-by: Babneet Singh sbabneet@ca.ibm.com