From 16bebd21b506042b3adc71b227ea23dbff2dcdb0 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Fri, 10 Dec 2010 22:37:39 -0800 Subject: [PATCH] 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. --- builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder.py b/builder.py index d5b8216..652c12d 100644 --- a/builder.py +++ b/builder.py @@ -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)