From 2dd8ef8823d3e9e47c226fcc0a039f5fb148f1eb Mon Sep 17 00:00:00 2001 From: khizmax Date: Sun, 17 May 2015 17:31:51 +0300 Subject: [PATCH] TSan exam: update descriptor pool for EllenBinTree --- tests/unit/ellen_bintree_update_desc_pool.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/ellen_bintree_update_desc_pool.h b/tests/unit/ellen_bintree_update_desc_pool.h index a3dcb856..e8158e9f 100644 --- a/tests/unit/ellen_bintree_update_desc_pool.h +++ b/tests/unit/ellen_bintree_update_desc_pool.h @@ -87,7 +87,10 @@ namespace ellen_bintree_pool { T * allocate( size_t n, void const * pHint = nullptr ) { internal_node_counter::onAlloc(); - return base_class::allocate( n, pHint ); + CDS_TSAN_ANNOTATE_IGNORE_WRITES_BEGIN; + T * p = base_class::allocate( n, pHint ); + CDS_TSAN_ANNOTATE_IGNORE_WRITES_END; + return p; } void deallocate( T * p, size_t n ) -- 2.34.1