[Lldb-commits] [lldb] r250044 - Switch threading mode for tests on Windows when there are lots of cores.

Adrian McCarthy via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 12 07:46:58 PDT 2015


Author: amccarth
Date: Mon Oct 12 09:46:57 2015
New Revision: 250044

URL: http://llvm.org/viewvc/llvm-project?rev=250044&view=rev
Log:
Switch threading mode for tests on Windows when there are lots of cores.
This prevents a "too many files" error.

Differential Revision: http://reviews.llvm.org/D13555

Modified:
    lldb/trunk/test/dosep.py

Modified: lldb/trunk/test/dosep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dosep.py?rev=250044&r1=250043&r2=250044&view=diff
==============================================================================
--- lldb/trunk/test/dosep.py (original)
+++ lldb/trunk/test/dosep.py Mon Oct 12 09:46:57 2015
@@ -1254,10 +1254,13 @@ def default_test_runner_name(num_threads
         # Use the serial runner.
         test_runner_name = "serial"
     elif os.name == "nt":
-        # Currently the multiprocessing test runner with ctrl-c
-        # support isn't running correctly on nt.  Use the pool
-        # support without ctrl-c.
-        test_runner_name = "threading-pool"
+        # On Windows, Python uses CRT with a low limit on the number of open
+        # files.  If you have a lot of cores, the threading-pool runner will
+        # often fail because it exceeds that limit.
+        if num_threads > 32:
+            test_runner_name = "multiprocessing-pool"
+        else:
+            test_runner_name = "threading-pool"
     elif is_darwin_version_lower_than(
             distutils.version.StrictVersion("10.10.0")):
         # OS X versions before 10.10 appear to have an issue using




More information about the lldb-commits mailing list