From af5ed67002b7031e1735968674bacb5ee868165f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 30 Aug 2019 16:03:07 +0200 Subject: Cutoff diagnostics stack when switching to nested context --- libbuild2/algorithm.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libbuild2/algorithm.cxx') diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx index 7a616a5..511850d 100644 --- a/libbuild2/algorithm.cxx +++ b/libbuild2/algorithm.cxx @@ -142,6 +142,10 @@ namespace build2 // target_lock // + // Note that the stack may contain locks for targets from multiple nested + // contexts. This should be harmless (deadlock detection-wise) since + // contexts are assumed non-overlapping. + // static #ifdef __cpp_thread_local thread_local -- cgit v1.1