-
Notifications
You must be signed in to change notification settings - Fork 710
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
Modified printJITServerMsgStats to print at shutdown on server #9870
Conversation
@mpirvu Can you please review my PR? Thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my inline comment
#endif | ||
} | ||
} | ||
j9tty_printf(PORTLIB, "Total number of messages: %u\n", totalMsgCount); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If MESSAGE_SIZE_STATS
is not defined, the for
loop above will go over all the messages, but print nothing and at the very end it will print "Total number of messages: 0"
I would include the for
loop and this last printf message into the block protected by ifdef.
Also, add a comment to the #endif
so that we know what should be paired with:
#if defined(MESSAGE_SIZE_STATS)
...
#endif // defined(MESSAGE_SIZE_STATS)
To trigger the jitDump use the option -Xdump:jit:events=user from the server side and then run the Java client and then kill -3 <pidof jitserver>. This will print the message stats received by the server at shutdown. issue: eclipse-openj9#9708 Signed-off-by: Eman Elsabban <eman.elsaban1@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
jenkins test sanity plinuxjit,xlinuxjit jdk11 |
To trigger the jitDump use the option
-Xdump:jit:events=user
from the server sideand then run the Java client and then
kill -3 (pidof jitserver)
. This will printthe message stats received by the server at shutdown.
issue: #9708
Signed-off-by: Eman Elsabban eman.elsaban1@gmail.com