-
Notifications
You must be signed in to change notification settings - Fork 738
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
Add a flag to return 0 if only one data point has been recorded #18636
Conversation
Currently, getProcessCpuLoad() and getSystemCpuLoad() return -1 if only one data point has been recorded. A compatibility flag -XX:[+/-]CpuLoadCompatibility is added to match the behaviour of the RI, which is to return 0. Fixes: eclipse-openj9#13389 Related: eclipse-omr/omr#7189 Signed-off-by: Gengchen Tuo <[email protected]>
@thallium don't forget to open the docs issue |
@TobiAjila did you want this in 0.43? |
Yes, lets add to 0.43 |
Docs issue has been open eclipse-openj9/openj9-docs#1232. FYI @pshipton @tajila |
@thallium pls cherry pick the commit and create a PR on https://github.com/eclipse-openj9/openj9/tree/v0.43.0-release |
Just found that a comment wasn't updated correctly and there's a minor formatting issue. I will open a PR to fix them first. |
A comment wasn't updated correctly and there's a minor formatting issue in eclipse-openj9#18636 Signed-off-by: Gengchen Tuo <[email protected]>
Currently, getProcessCpuLoad() and getSystemCpuLoad() return -1 if only one data point has been recorded. A compatibility flag -XX:[+/-]CpuLoadCompatibility is added to match the behaviour of the RI, which is to return 0.
Fixes: #13389
Related: eclipse-omr/omr#7189
Related: #18634