forked from OSchip/llvm-project
lit: revert 134b103fc0
Revert the 32-process cap on Windows. When testing with Swift, we found that there was a time reduction for testing with the higher load. This should hopefully not matter much in practice. In the case that the original problem with python remains with a high subprocess count, we can easily revert this change.
This commit is contained in:
parent
b8701dc174
commit
d319005a37
|
@ -119,12 +119,6 @@ def usable_core_count():
|
||||||
n = len(os.sched_getaffinity(0))
|
n = len(os.sched_getaffinity(0))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
n = os.cpu_count() or 1
|
n = os.cpu_count() or 1
|
||||||
|
|
||||||
# On Windows, with more than 32 processes, process creation often fails with
|
|
||||||
# "Too many open files". FIXME: Check if there's a better fix.
|
|
||||||
if platform.system() == 'Windows':
|
|
||||||
return min(n, 32)
|
|
||||||
|
|
||||||
return n
|
return n
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue