-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement JVM_VirtualThread[Mount|Unmount|Start|End]
- Move code of APIs of JDK 20 such as JVM_VirtualThreadMountBegin to helpers so they can be called by APIs of both JDK 20 and 21 - Hide frames between mount/unmount begin and mount/unmount end - Seperate out code that is specific to first mount and last unmount. Fixes #16984 Outlines of related functions: virtualThread[Mount|Unmount]Begin: enterVThreadTransition() virtualThreadHideFrames(true) virtualThread[Mount|Unmount]End: virtualThreadHideFrames(false) exitVThreadTransition() JVM_VirtualThreadMount(bool hide): if (hide) virtualThreadMountBegin() else virtualThreadMountEnd() TRIGGER_J9HOOK_VM_VIRTUAL_THREAD_MOUNT() JVM_VirtualThreadUnmount(bool hide): if (hide) TRIGGER_J9HOOK_VM_VIRTUAL_THREAD_UNMOUNT() virtualThreadUnmountBegin() else virtualThreadUnmountEnd() JVM_VirtualThreadStart() virtualThreadMountEnd() TRIGGER_J9HOOK_VM_VIRTUAL_THREAD_STARTED() JVM_VirtualThreadEnd() TRIGGER_J9HOOK_VM_VIRTUAL_THREAD_END() virtualThreadUnmountBegin() Signed-off-by: Gengchen Tuo <gengchen.tuo@ibm.com>
- Loading branch information
1 parent
1ae20c6
commit f5bb751
Showing
6 changed files
with
231 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.