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

Handle frame-skipping of jvmtiGetFrameLocation in frame callback #21084

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

thallium
Copy link
Contributor

@thallium thallium commented Feb 7, 2025

Since frame callback is not called for skipped frame, frames with JvmtiMountTransition annotation will not be correctly handled.

Also added JvmtiMountTransition annotations to Continuation.enter(), Continuation.yield(), and Continuation.yield0().

Fixes: #20541

@thallium
Copy link
Contributor Author

thallium commented Feb 7, 2025

Personal builds: https://hyc-runtimes-jenkins.swg-devops.com/job/Pipeline-Build-Test-Personal/26244/ https://hyc-runtimes-jenkins.swg-devops.com/view/OpenJ9%20-%20Personal/job/Pipeline-Build-Test-Personal/26228/
Tested with sanity.functional, sanity.openjdk and extended.openjdk on JDK 11, 21 and 24. Failed tests don't seem to relate to the change.

@thallium
Copy link
Contributor Author

thallium commented Feb 7, 2025

@babsingh Can you please take a look?

Copy link
Contributor

@babsingh babsingh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, mention about JvmtiMountTransition annotations in the PR's description.

runtime/jvmti/jvmtiStackFrame.cpp Outdated Show resolved Hide resolved
@babsingh
Copy link
Contributor

babsingh commented Feb 7, 2025

@gacholio can you also review these changes?

@babsingh babsingh requested a review from gacholio February 7, 2025 15:46
@gacholio
Copy link
Contributor

gacholio commented Feb 7, 2025

I see you are still setting skipCount which seems inappropriate.

@thallium
Copy link
Contributor Author

thallium commented Feb 7, 2025

Got rid of skipCount for all versions.

@thallium
Copy link
Contributor Author

@gacholio can you take another look?

@gacholio
Copy link
Contributor

Will do.

Since frame callback is not called for skipped frame, frames with
JvmtiMountTransition annotation will not be correctly handled.

Signed-off-by: Gengchen Tuo <[email protected]>
@gacholio
Copy link
Contributor

jenkins test sanity zlinux jdk21

@gacholio gacholio merged commit 819bceb into eclipse-openj9:master Feb 14, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants