[jdk16] RFR: 8259765: ZGC: Handle incorrect processor id reported by the operating system [v2]

Florian Weimer fweimer at openjdk.java.net
Tue Jan 19 10:33:46 UTC 2021


On Mon, 18 Jan 2021 08:05:27 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:

>> Per Liden has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Review
>
> Marked as reviewed by eosterlund (Reviewer).

What does the affinity mask look like at process startup? It should be possible to look at that and take the maximum CPU ID (plus 1) and `sysconf(_SC_NPROCESSORS_CONF)`. This would be a one-time overhead.

It will not work with container deployments that dynamically alter affinity masks. Are there any?

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

PR: https://git.openjdk.java.net/jdk16/pull/124



More information about the hotspot-gc-dev mailing list