Skip to content

Commit d319005

Browse files
committed
lit: revert 134b103
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.
1 parent b8701dc commit d319005

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/utils/lit/lit/util.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,6 @@ def usable_core_count():
119119
n = len(os.sched_getaffinity(0))
120120
except AttributeError:
121121
n = os.cpu_count() or 1
122-
123-
# On Windows, with more than 32 processes, process creation often fails with
124-
# "Too many open files". FIXME: Check if there's a better fix.
125-
if platform.system() == 'Windows':
126-
return min(n, 32)
127-
128122
return n
129123

130124

0 commit comments

Comments
 (0)