Skip to content

(0.51) Prevent callers of big callees getting marked as big during ECS #21383

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

Merged
merged 2 commits into from
Mar 28, 2025

Conversation

nbhuiyan
Copy link
Member

@nbhuiyan nbhuiyan commented Mar 18, 2025

This PR delivers the changes in #21364 #21465 for 0.51.

@nbhuiyan
Copy link
Member Author

@mpirvu Requesting review and merge.

@mpirvu
Copy link
Contributor

mpirvu commented Mar 18, 2025

I verified that the code is exactly the same as in the original commit.
I will merge this backport tomorrow, after the original PR will go through night testing.

@mpirvu mpirvu self-assigned this Mar 18, 2025
@pshipton pshipton marked this pull request as draft March 19, 2025 21:54
nbhuiyan and others added 2 commits March 26, 2025 11:36
During Estimate Code Size, if we came across a callee that
exceeded the bigCalleeThreshold, we would mark every method
up the call chain as also having exceeded the bigCalleeThreshold.
This resulted in removal of call targets above the callee
marked as such. To get around this issue, we utilize the new
field _bigCalleesSize that is set when a callee exceeds the
bigCalleeThreshold, and is used to adjust the analyzed size
of the methods above the big callee's level in the call chain
to prevent them from getting marked as too big.

Co-authored-by: Vijay Sundaresan <[email protected]>
Signed-off-by: Nazim Bhuiyan <[email protected]>
This workaround is intended to prevent a functional issue with
OpenJ9 MethodHanldes exposed by the ECS heuristics intended to
account for callees marked as too big from marking methods up
the call chain as also too big.

Signed-off-by: Nazim Bhuiyan <[email protected]>
@nbhuiyan nbhuiyan marked this pull request as ready for review March 26, 2025 15:37
@nbhuiyan
Copy link
Member Author

nbhuiyan commented Mar 26, 2025

@mpirvu I have updated the branch to deliver the changes merged via #21465. Requesting a re-review and merge after nightly testing completes with the changes in #21465.

Copy link
Contributor

@mpirvu mpirvu left a comment

Choose a reason for hiding this comment

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

LGTM.

@mpirvu mpirvu merged commit bfda021 into eclipse-openj9:v0.51.0-release Mar 28, 2025
2 checks passed
@nbhuiyan nbhuiyan deleted the bigcallees-0.51 branch April 28, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants