Skip to content

Reduce uses of getResolvedMethods#23624

Open
dsouzai wants to merge 4 commits intoeclipse-openj9:masterfrom
dsouzai:reduceGetResolvedMethods
Open

Reduce uses of getResolvedMethods#23624
dsouzai wants to merge 4 commits intoeclipse-openj9:masterfrom
dsouzai:reduceGetResolvedMethods

Conversation

@dsouzai
Copy link
Copy Markdown
Contributor

@dsouzai dsouzai commented Apr 1, 2026

See #23591 for details.

@dsouzai dsouzai added comp:jit comp:jitserver Artifacts related to JIT-as-a-Service project comp:jit:aot labels Apr 1, 2026
@dsouzai
Copy link
Copy Markdown
Contributor Author

dsouzai commented Apr 1, 2026

@mpirvu for your review.

I'll open the OMR PR once this PR is accepted. Also, this PR did not eliminate all uses of getResolvedMethods in OpenJ9, only some of them.

@mpirvu mpirvu self-assigned this Apr 1, 2026
Comment thread runtime/compiler/env/VMJ9.cpp
Comment thread runtime/compiler/env/VMJ9.cpp Outdated
Comment thread runtime/compiler/env/VMJ9.cpp Outdated
Comment thread runtime/compiler/env/VMJ9.cpp Outdated
Comment thread runtime/compiler/env/VMJ9Server.cpp Outdated
@dsouzai dsouzai marked this pull request as draft April 2, 2026 13:36
dsouzai added 4 commits April 16, 2026 09:44
This commit refactors getMatchingMethodFromNameAndSignature by
adding a new helper method matchedMethod. It also refactors
getResolvedMethods to take in an optional parameter methodName; if
methodName is NULl then all methods in the class are returned, otherwise
only the ones that match the methodName (regardless of signature) are
returned.

It also adds the new getResolvedMethodForConstructorWithSig query for
when only a constructor method is required.

Signed-off-by: Irwin D'Souza <dsouzai.gh@gmail.com>
Signed-off-by: Irwin D'Souza <dsouzai.gh@gmail.com>
Signed-off-by: Irwin D'Souza <dsouzai.gh@gmail.com>
Signed-off-by: Irwin D'Souza <dsouzai.gh@gmail.com>
@dsouzai dsouzai force-pushed the reduceGetResolvedMethods branch from a536afa to f25d3de Compare April 16, 2026 13:54
@dsouzai dsouzai marked this pull request as ready for review April 16, 2026 13:54
@dsouzai
Copy link
Copy Markdown
Contributor Author

dsouzai commented Apr 16, 2026

@mpirvu good for review again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:jit:aot comp:jit comp:jitserver Artifacts related to JIT-as-a-Service project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants