summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-08-07 17:32:06 +0000
committerNico Weber <nicolasweber@gmx.de>2015-08-07 17:32:06 +0000
commit2692811d00284bae0d8e346b59b7ef410292f8d0 (patch)
treed1632ed567e15322b4a709e6fbb1a2cab8424cd4
parent1a9344fa2645a23b6825c5ad524f846783b06653 (diff)
downloadbcm5719-llvm-2692811d00284bae0d8e346b59b7ef410292f8d0.tar.gz
bcm5719-llvm-2692811d00284bae0d8e346b59b7ef410292f8d0.zip
Add a comment.
llvm-svn: 244337
-rw-r--r--llvm/lib/Support/CrashRecoveryContext.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp
index b9829e1192a..352b519f9b4 100644
--- a/llvm/lib/Support/CrashRecoveryContext.cpp
+++ b/llvm/lib/Support/CrashRecoveryContext.cpp
@@ -24,6 +24,10 @@ static ManagedStatic<
sys::ThreadLocal<const CrashRecoveryContextImpl> > CurrentContext;
struct CrashRecoveryContextImpl {
+ // When threads are disabled, this links up all active
+ // CrashRecoveryContextImpls. When threads are enabled there's one thread
+ // per CrashRecoveryContext and CurrentContext is a thread-local, so only one
+ // CrashRecoveryContextImpl is active per thread and this is always null.
const CrashRecoveryContextImpl *Next;
CrashRecoveryContext *CRC;
OpenPOWER on IntegriCloud