Skip to content
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

Skip methods with JvmtiMountTransition annotation #18016

Merged
merged 1 commit into from
Aug 26, 2023

Conversation

babsingh
Copy link
Contributor

Java methods tagged with the JvmtiMountTransition annotation are
involved in transitioning between carrier to virtual threads, and
vice-versa.

These methods are not part of the thread's scope. So, they should be
skipped during introspection by all the relevant JVMTI functions.

This commit covers the remaining JVMTI functions which need to skip
methods tagged with the JvmtiMountTransition annotation.

Fixes: #17520

Signed-off-by: Babneet Singh sbabneet@ca.ibm.com

Java methods tagged with the JvmtiMountTransition annotation are
involved in transitioning between carrier to virtual threads, and
vice-versa.

These methods are not part of the thread's scope. So, they should be
skipped during introspection by all the relevant JVMTI functions.

This commit covers the remaining JVMTI functions which need to skip
methods tagged with the JvmtiMountTransition annotation.

Fixes: eclipse-openj9#17520

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
@babsingh
Copy link
Contributor Author

This PR addresses the concerns from #17855 (comment).

@babsingh
Copy link
Contributor Author

My personal build with sanity.functional, sanity.openjdk and extended.openjdk test suites across JDK11 and JDK21 looks good: https://hyc-runtimes-jenkins.swg-devops.com/view/OpenJ9%20-%20Personal/job/Pipeline-Build-Test-Personal/17885. Only noticed one known failure, which is reported in #17672.

@babsingh babsingh marked this pull request as ready for review August 25, 2023 13:55
@babsingh babsingh requested a review from gacholio August 25, 2023 13:56
@babsingh
Copy link
Contributor Author

@gacholio Requesting your review.

@gacholio
Copy link
Contributor

jenkins compile win jdk8,jdk21

@gacholio
Copy link
Contributor

jenkins test sanity zlinux jdk21

@babsingh
Copy link
Contributor Author

https://openj9-jenkins.osuosl.org/job/Test_openjdk21_j9_sanity.functional_s390x_linux_Personal/20/

Infra git failure in the zlinux jdk21 build. Restarting the job.

jenkins test sanity zlinux jdk21

@gacholio gacholio merged commit 63f95d2 into eclipse-openj9:master Aug 26, 2023
7 checks passed
@babsingh babsingh deleted the skip_JvmtiMountTransition branch August 27, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[JDK21] Support JvmtiMountTransition Annotation
2 participants