HomeFreeBSD

Revert r367815, so we can apply the slightly different version that

Description

Revert r367815, so we can apply the slightly different version that
landed upstream:

For llvm's internal function which retrieves the number of available
"hardware threads", use cpuset_getaffinity(2) on FreeBSD, so it will
honor processor sets configured by the cpuset(1) command.

This should make it possible to avoid e.g. lld creating a huge number of
threads on a machine with many cores, even for linking simple programs.

This will also be submitted upstream.

Submitted by: mjg

Details

Provenance
dimAuthored on Dec 3 2020, 7:26 PM
Parents
rGb957b185946e: Always use 64-bit physical addresses for dump_avail[] in minidumps
Branches
Unknown
Tags
Unknown