RFR: 8283903: GetContainerCpuLoad does not return the correct result in share mode

Jie Fu jiefu at openjdk.java.net
Wed Mar 30 03:20:36 UTC 2022


On Wed, 30 Mar 2022 02:44:52 GMT, xpbob <duke at openjdk.java.net> wrote:

> GetHostTotalCpuTicks0 is correct
> (GetHostTotalCpuTicks0() * containerCPUs) will overflowed

Okay.
It makes sense for this case.

Maybe, there is no way to prevent the overflow of `hostTicks ` returned by `getHostTotalCpuTicks0()`.
So the change looks good to me.
Thanks.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8028


More information about the serviceability-dev mailing list