projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97438a7
)
TSan exam: SplitList
author
khizmax
<libcds.dev@gmail.com>
Sat, 16 May 2015 15:56:16 +0000
(18:56 +0300)
committer
khizmax
<libcds.dev@gmail.com>
Sat, 16 May 2015 15:56:16 +0000
(18:56 +0300)
cds/intrusive/split_list_rcu.h
patch
|
blob
|
history
diff --git
a/cds/intrusive/split_list_rcu.h
b/cds/intrusive/split_list_rcu.h
index 3ba404927bdfff5b99850752ebfbed13e295c2e7..99c1c23b5c87298dcd8c3a85b9d35faebb8cd60a 100644
(file)
--- a/
cds/intrusive/split_list_rcu.h
+++ b/
cds/intrusive/split_list_rcu.h
@@
-519,7
+519,10
@@
namespace cds { namespace intrusive {
dummy_node_type * pHead = get_bucket( nHash );
assert( pHead != nullptr );
+ // TSan false positive: hash is read-only, will be ordered when we insert a node
+ CDS_TSAN_ANNOTATE_IGNORE_WRITES_BEGIN;
node_traits::to_node_ptr( val )->m_nHash = split_list::regular_hash( nHash );
+ CDS_TSAN_ANNOTATE_IGNORE_WRITES_END;
if ( m_List.insert_at( pHead, val )) {
inc_item_count();