-
Notifications
You must be signed in to change notification settings - Fork 720
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
add JVMTI callback/hook for virtualThread #15254
Conversation
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 formatting nitpicks. otherwise, LGTM.
static void jvmtiHookVirtualThreadStarted (J9HookInterface** hook, UDATA eventNum, void* eventData, void* userData); | ||
static void jvmtiHookVirtualThreadEnd (J9HookInterface** hook, UDATA eventNum, void* eventData, void* userData); |
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.
static void jvmtiHookVirtualThreadStarted (J9HookInterface** hook, UDATA eventNum, void* eventData, void* userData); | |
static void jvmtiHookVirtualThreadEnd (J9HookInterface** hook, UDATA eventNum, void* eventData, void* userData); | |
static void jvmtiHookVirtualThreadStarted (J9HookInterface **hook, UDATA eventNum, void *eventData, void *userData); | |
static void jvmtiHookVirtualThreadEnd (J9HookInterface **hook, UDATA eventNum, void *eventData, void *userData); |
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 am leaning towards keeping the existing format here, or else we could just change all the function headers to match standard
88be440
to
18642a4
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.
LGTM, approving.
I would suggest strengthening the content in the commit message and PR description by highlighting the specifics for which support is introduced:
jvmtiHookVirtualThreadStarted
jvmtiHookVirtualThreadEnd
can_support_virtual_threads
78ad61e
to
237b9f4
Compare
- New hook methods: jvmtiHookVirtualThreadStarted jvmtiHookVirtualThreadEnd - Enable can_support_virtual_threads by default for Java19 Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
Signed-off-by: Jack Lu <Jack.S.Lu@ibm.com>
Jenkins test sanity amac jdknext |
Jenkins test compile win jdknext |
amac compile passed, PR testing failed due to infra issue |
Jenkins test compile win jdknext |
Jenkins test sanity amac jdknext |
Related: #15183
Signed-off-by: Jack Lu Jack.S.Lu@ibm.com