Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JDK21] Add support for JVMTI PopFrame
Previously, PopFrame returned JVMTI_ERROR_OPAQUE_FRAME for a virtual thread. In JDK21, PopFrame includes support for virtual threads as per the JVMTI specification: - Error if a virtual thread is not suspended and not the current thread. - Error if a virtual thread is unomunted since it won't be able to pop the current frame. - For a carrier thread with a virtual thread mounted, the details of the carrier thread are derived from targetThread->currentContinuation. Related: - eclipse-openj9#17715 - eclipse-openj9#17716 Also, there is no need to halt and resume a thread for inspection since PopFrame expects the thread to be suspended as per the JVMTI spec. If a thread is not suspended, it returns JVMTI_ERROR_THREAD_NOT_SUSPENDED. Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
- Loading branch information