projects
/
libcds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[TSan] Fixed a race
[libcds.git]
/
test
/
stress
/
freelist
/
put_get.cpp
diff --git
a/test/stress/freelist/put_get.cpp
b/test/stress/freelist/put_get.cpp
index 6a51563eec1cfac8e69ab1d835af8cc133cdcd93..59f6878a27e4c57d52dbc84297721b6886dc20ed 100644
(file)
--- a/
test/stress/freelist/put_get.cpp
+++ b/
test/stress/freelist/put_get.cpp
@@
-88,7
+88,9
@@
namespace {
item_type* p;
while ( (p = static_cast<item_type*>( m_FreeList.get())) != nullptr ) {
+ CDS_TSAN_ANNOTATE_IGNORE_RW_BEGIN;
p->counter++;
+ CDS_TSAN_ANNOTATE_IGNORE_RW_END;
arr[n] = p;
++m_nSuccess;
++n;