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

Implement Thread.findScopedValueBindings() #18255

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

babsingh
Copy link
Contributor

@babsingh babsingh commented Oct 6, 2023

Walk the stack frames to look for the runWith() method and get
its first argument, which should be an instance of
java.lang.ScopedValue$Snapshot.

Closes: #16677

Closes: #17402

Co-authored-by: Gengchen Tuo gengchen.tuo@ibm.com
Signed-off-by: Babneet Singh sbabneet@ca.ibm.com

@babsingh
Copy link
Contributor Author

babsingh commented Oct 6, 2023

@gacholio The top commit (Code review) addresses all of your feedback from #17402. I will squash the commits after your approval. I am also building locally to verify these changes.

fyi @thallium @fengxue-IS @TobiAjila

@babsingh babsingh requested a review from gacholio October 6, 2023 20:18
@babsingh babsingh force-pushed the findScopedValueBindings_v2 branch 2 times, most recently from 6e0ff43 to 41966a0 Compare October 6, 2023 20:28
@babsingh
Copy link
Contributor Author

babsingh commented Oct 6, 2023

@gacholio
Copy link
Contributor

jenkins test sanity zlinux jdk21

@gacholio
Copy link
Contributor

jenkins compile win jdk8,jdk21

@babsingh
Copy link
Contributor Author

babsingh commented Oct 16, 2023

PR build links:

@gacholio I will squash the commits. The above PR builds should be valid after the squash.

Walk the stack frames to look for the runWith() method and get
its first argument, which should be an instance of
java.lang.ScopedValue$Snapshot.

Closes: eclipse-openj9#16677

Closes: eclipse-openj9#17402

Co-authored-by: Gengchen Tuo gengchen.tuo@ibm.com
Signed-off-by: Babneet Singh sbabneet@ca.ibm.com
@babsingh
Copy link
Contributor Author

@gacholio Both PR build jobs have passed.

@gacholio gacholio merged commit 720a42a into eclipse-openj9:master Oct 16, 2023
2 checks passed
babsingh added a commit to babsingh/openj9 that referenced this pull request Oct 17, 2023
Addresses the post-merge feedback from eclipse-openj9#18255.

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
midronij pushed a commit to midronij/openj9 that referenced this pull request Oct 26, 2023
Addresses the post-merge feedback from eclipse-openj9#18255.

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
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.

[JDK20] Thread.findScopedValueBindings to support JEP 429?
4 participants