projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cc8f70
)
lit: Limit number of processes on Windows to 32.
author
Nico Weber
<nicolasweber@gmx.de>
Tue, 22 Dec 2015 23:12:00 +0000
(23:12 +0000)
committer
Nico Weber
<nicolasweber@gmx.de>
Tue, 22 Dec 2015 23:12:00 +0000
(23:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256291
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/lit/lit/util.py
patch
|
blob
|
history
diff --git
a/utils/lit/lit/util.py
b/utils/lit/lit/util.py
index 224509ab840b610bf773b4f85eca8911f6f97720..36fe8fb9f6915500189c8bcd9e28ef8635d707aa 100644
(file)
--- a/
utils/lit/lit/util.py
+++ b/
utils/lit/lit/util.py
@@
-39,7
+39,9
@@
def detectCPUs():
if "NUMBER_OF_PROCESSORS" in os.environ:
ncpus = int(os.environ["NUMBER_OF_PROCESSORS"])
if ncpus > 0:
- return ncpus
+ # With more than 32 processes, process creation often fails with
+ # "Too many open files". FIXME: Check if there's a better fix.
+ return min(ncpus, 32)
return 1 # Default
def mkdir_p(path):