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 01:16:52 UTC 2024
On Wed, 28 Feb 2024 06:53:38 GMT, David Holmes <dholmes at openjdk.org> wrote:
> The documentation states:
>
> > On a system with more than 64 processors, if the threads of the calling process are in a single [processor group](https://learn.microsoft.com/en-us/windows/desktop/ProcThread/processor-groups), the function sets the variables pointed to by lpProcessAffinityMask and lpSystemAffinityMask to the process affinity mask and the processor mask of active logical processors for that group. If the calling process contains threads in multiple groups, the function returns zero for both affinity masks.
>
> So it seems that we need to do something special to handle zero here.
Good point. I have added a check to ensure that zero is handled by the final return statement of this method.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17576#discussion_r1508370867
More information about the hotspot-runtime-dev
mailing list