[lit] Enqueue tests on a separate thread to not hit limits on parallel queues
authorFilipe Cabecinhas <me@filcab.net>
Thu, 17 Mar 2016 18:27:33 +0000 (18:27 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Thu, 17 Mar 2016 18:27:33 +0000 (18:27 +0000)
commitc80cb3d0c60a8ae517aa70630a14ed91a5c633ee
tree698c5506fe68058ac2004c90d441f0b48c988d7c
parenta9ff7a14ec291c415202be83e98752199f2c8375
[lit] Enqueue tests on a separate thread to not hit limits on parallel queues

Summary:
The multiprocessing.Queue.put() call can hang if we try queueing all the
tests before starting to take them out of the queue.
The current implementation hangs if tests exceed 2^^15, on Mac OS X.
This might happen with a ninja check-all if one has a bunch of llvm
projects.

Reviewers: delcypher, bkramer

Subscribers: llvm-commits

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

llvm-svn: 263731
llvm/utils/lit/lit/run.py