[PATCH] D36385: [asan] Refactor thread creation bookkeeping
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 15:55:48 PDT 2017
vitalybuka added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_thread_registry.cc:265
CHECK_NE(tctx, 0);
- CHECK_EQ(ThreadStatusRunning, tctx->status);
+ bool dead = tctx->detached;
+ if (tctx->status == ThreadStatusRunning) {
----------------
can you remove dead and just have
```
if (tctx->detached) {
tctx->detached = false;
tctx->SetDead();
QuarantinePush(tctx);
}
```
https://reviews.llvm.org/D36385
More information about the llvm-commits
mailing list