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

(v0.43) Add a flag to return 0 if only one data point has been recorded #18639

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

thallium
Copy link
Contributor

@thallium thallium commented Dec 17, 2023

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

Port of the following for 0.43
#18636
#18638

@thallium
Copy link
Contributor Author

@pshipton FYI

@pshipton
Copy link
Member

Since this depends on eclipse-omr/omr#7189, we also need a cherry pick of this and a PR created against https://github.com/eclipse-openj9/openj9-omr/tree/v0.43.0-release

runtime/vm/jvminit.c Outdated Show resolved Hide resolved
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 <gengchen.tuo@ibm.com>
@pshipton pshipton merged commit 74e68ce into eclipse-openj9:v0.43.0-release Dec 17, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants