diff options
author | Kostya Serebryany <kcc@google.com> | 2014-02-13 15:45:20 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-02-13 15:45:20 +0000 |
commit | 37a9577a729f85647991d0eae1fbed3b854b61ed (patch) | |
tree | 1275be9cc5f7e94229618b5d8a9364b03788f066 /lib/sanitizer_common/sanitizer_deadlock_detector.h | |
parent | e5de0a630c0abeb36a274d90404cb9da99b0bb97 (diff) |
[sanitizer] optimize TwoLevelBitVector::intersectsWith, extend tests, fix a check
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_deadlock_detector.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_deadlock_detector.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sanitizer_common/sanitizer_deadlock_detector.h b/lib/sanitizer_common/sanitizer_deadlock_detector.h index 66ec0186d..fcdc3f2e5 100644 --- a/lib/sanitizer_common/sanitizer_deadlock_detector.h +++ b/lib/sanitizer_common/sanitizer_deadlock_detector.h @@ -95,10 +95,10 @@ class DeadlockDetector { return getAvailableNode(data); } // We are out of vacant nodes. Flush and increment the current_epoch_. - uptr new_epoch = current_epoch_ + size(); - clear(); - current_epoch_ = new_epoch; + current_epoch_ += size(); + recycled_nodes_.clear(); available_nodes_.setAll(); + g_.clear(); return getAvailableNode(data); } |