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

Fix JITServer bug related to ChangesCurrentThread annotation #18827

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

mpirvu
Copy link
Contributor

@mpirvu mpirvu commented Jan 26, 2024

Methods that are annotated with @ChangesCurrentThread may receive special treatment from the inliner. This is a feature present only in Java21 and up. When creating a resolvedMethod mirror, the client retrieves the information related to @ChangesCurrentThread annotation and packs it into the message sent back to the server. Current code contained a bug where the information related to this annotation is not unpacked at the server. The net effect was that the inliner refused to inline some methods, reducing throughput. This commit rectifies the problem, by correctly unpacking the information related to the ChangesCurrentThread annotation.

Methods that are annotated with @ChangesCurrentThread may receive
special treatment from the inliner. This is a feature present only
in Java21 and up. When creating a resolvedMethod mirror, the client
retrieves the information related to @ChangesCurrentThread annotation
and packs it into the message sent back to the server.
Current code contained a bug where the information related to this
annotation is not unpacked at the server. The net effect was that
the inliner refused to inline some methods, reducing throughput.
This commit rectifies the problem, by correctly unpacking the information
related to the ChangesCurrentThread annotation.

Signed-off-by: Marius Pirvu <[email protected]>
@mpirvu mpirvu added the comp:jitserver Artifacts related to JIT-as-a-Service project label Jan 26, 2024
@mpirvu mpirvu requested a review from dsouzai as a code owner January 26, 2024 15:34
@mpirvu
Copy link
Contributor Author

mpirvu commented Jan 26, 2024

jenkins test sanity plinuxjit,xlinuxjit,zlinuxjit,alinux64jit jdk21

@mpirvu
Copy link
Contributor Author

mpirvu commented Jan 26, 2024

@dsouzai Could you please review/merge this simple bug fix? Thanks

@dsouzai dsouzai self-assigned this Jan 26, 2024
@mpirvu
Copy link
Contributor Author

mpirvu commented Jan 26, 2024

All tests have passed.

@dsouzai dsouzai merged commit 2b552ad into eclipse-openj9:master Jan 27, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:jitserver Artifacts related to JIT-as-a-Service project
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants