builder: the (WAITING) message from --debug-locks didn't print every time.
This was misleading; we end up waiting synchronously for a lock more often than I thought, and it really does slow down builds.
This commit is contained in:
parent
b1bb48a029
commit
16bebd21b5
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ def main(targets, shouldbuildfunc):
|
|||
lock = state.Lock(fid)
|
||||
lock.trylock()
|
||||
if not lock.owned:
|
||||
if vars.DEBUG_LOCKS and len(locked) >= 1:
|
||||
if vars.DEBUG_LOCKS:
|
||||
warn('%s (WAITING)\n' % _nice(t))
|
||||
lock.waitlock()
|
||||
assert(lock.owned)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue