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

Guard JITServer version printing #14517

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

cjjdespres
Copy link
Contributor

The JITServer version should only be printed in client or server
compilation mode, as it is confusing otherwise. This applies even when
JITServer verbose mode is enabled.

Fixes: #14514
Signed-off-by: Christian Despres despresc@ibm.com

@cjjdespres
Copy link
Contributor Author

Attn @mpirvu

TR::PersistentInfo *persistentInfo = compInfo->getPersistentInfo();
if (persistentInfo->getRemoteCompilationMode() == JITServer::SERVER ||
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: we already have a test for SERVER/CLIENT on line 2339, so it may be better to have the entire body of this method under that if.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's possible. Or the printJITServerVersion line could be duplicated in the subsequent two if statements on lines 2374 and 2379, which would avoid an extra checks entirely.

Copy link
Contributor

Choose a reason for hiding this comment

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

That will work too

@mpirvu mpirvu added the comp:jitserver Artifacts related to JIT-as-a-Service project label Feb 15, 2022
@mpirvu mpirvu self-assigned this Feb 15, 2022
The JITServer version should only be printed in client or server
compilation mode, as it is confusing otherwise. This applies even when
JITServer verbose mode is enabled.

Fixes: eclipse-openj9#14514
Signed-off-by: Christian Despres <despresc@ibm.com>
@mpirvu
Copy link
Contributor

mpirvu commented Feb 15, 2022

jenkins test sanity zlinuxjit jdk17

@mpirvu mpirvu merged commit 7a8eb84 into eclipse-openj9:master Feb 16, 2022
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
None yet
Development

Successfully merging this pull request may close these issues.

non-JITServer JVMs should not print JITServer version info
2 participants