RFR: 6942632: Hotspot should be able to use more than 64 logical processors on Windows [v3]

Saint Wesonga duke at openjdk.org
Fri Mar 1 06:19:52 UTC 2024


On Fri, 1 Mar 2024 05:35:35 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Sorry I'm still not clear here. From my reading `GetProcessAffinityMask` is either going to return a zero mask or a non-zero mask. In the non-zero case, the count must be <=64. So even if we intend to use > 64 processors, this mask reading will always limit us to a value < 64. And the zero mask is only for one special case. So regardless of the use of the "start" command, it seems to me this will cause us to bail out at line 903. ??

If there are 64 bits set in the process affinity mask, there is no way to tell whether or not the start command was used to set this mask. This implementation treats this case as equivalent to the user not restricting processor affinities at all. We don't bail out at line 903 because in this case, logical_processors == si.dwNumberOfProcessors and all 65+ processors from line 964 will therefore be usable.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17576#discussion_r1508526810


More information about the hotspot-runtime-dev mailing list