-
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 make get[Process|System]CpuLoad() match RI behaviour #18451
Conversation
c4067e2
to
74cda0c
Compare
@TobiAjila FYI |
@ChengJin01 Please review these changes |
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.
Approve the PR from code perspective assuming the description & comments are appended with .
.
...gement/share/classes/com/ibm/lang/management/internal/ExtendedOperatingSystemMXBeanImpl.java
Outdated
Show resolved
Hide resolved
74cda0c
to
356af7d
Compare
This is to help getSystemCpuLoad() determine if it's the first call. Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
356af7d
to
9371cae
Compare
This is to help getSystemCpuLoad() determine if it's the first call. Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
9371cae
to
0cec2e0
Compare
This is to help getSystemCpuLoad() determine if it's the first call. Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
This is to help getSystemCpuLoad() determine if it's the first call. Also fixed a mistake in the description saying that the first two invocations return OMRPORT_ERROR_OPFAILED and fix the time unit in the description to "ms". Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
This is to help getSystemCpuLoad() determine if it's the first call. Also fixed a mistake in the description saying that the first two invocations return OMRPORT_ERROR_OPFAILED and fix the time unit in the description to "ms". Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
This is to help getSystemCpuLoad() determine if it's the first call. Also fixed a mistake in the description saying that the first two invocations return OMRPORT_ERROR_OPFAILED and fix the time unit in the description to "ms". Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
This is to help getSystemCpuLoad() determine if it's the first call. Also fixed a mistake in the description saying that the first two invocations return OMRPORT_ERROR_OPFAILED and fix the time unit in the description to "ms". Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
This is to help getSystemCpuLoad() determine if it's the first call. Also fixed a mistake in the description saying that the first two invocations return OMRPORT_ERROR_OPFAILED and fix the time unit in the description to "ms". Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
This is to help getSystemCpuLoad() determine if it's the first call. Also fixed a mistake in the description saying that the first two invocations return OMRPORT_ERROR_OPFAILED and fix the time unit in the description to "ms". Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
…e data point is available This is to help getSystemCpuLoad() determine if it's the first call. Also fixed a mistake in the description saying that the first two invocations return OMRPORT_ERROR_OPFAILED and fix the time unit in the description to "ms". Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
This is to determine if a call to omrsysinfo_get_CPU_load has onlyone data point recorded. Also fixed a mistake in the description saying that the first two invocations return OMRPORT_ERROR_OPFAILED and fix the time unit in the description to "ms". Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
This is to determine if a call to omrsysinfo_get_CPU_load has onlyone data point recorded. Also fixed a mistake in the description saying that the first two invocations return OMRPORT_ERROR_OPFAILED and fix the time unit in the description to "ms". Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
This is to determine if a call to omrsysinfo_get_CPU_load has only one data point recorded. Also fixed a mistake in the description saying that the first two invocations return OMRPORT_ERROR_OPFAILED and fix the time unit in the description to "ms". Related: eclipse-openj9/openj9#18451 Signed-off-by: Gengchen Tuo <[email protected]>
@thallium Please rebase this PR |
466c2ff
to
d2f5475
Compare
@tajila Rebased |
jenkins test sanity alinux64 jdk17 |
jenkins test sanity win jdk8 |
@thallium there are some test failures |
...gement/share/classes/com/ibm/lang/management/internal/ExtendedOperatingSystemMXBeanImpl.java
Show resolved
Hide resolved
See #13389 (comment) |
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]>
d2f5475
to
a9d62d6
Compare
Fixed the logic and commit message. |
jenkins test sanity alinux64 jdk17 |
@thallium Can you please open a docs issue |
Reverted via #18635 |
This is to determine if a call to omrsysinfo_get_CPU_load has only one data point recorded. Also fixed a mistake in the description saying that the first two invocations return OMRPORT_ERROR_OPFAILED and fix the time unit in the description to "ms". Related: eclipse-openj9/openj9#18451 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