From: khizmax Date: Sun, 17 May 2015 14:31:51 +0000 (+0300) Subject: TSan exam: update descriptor pool for EllenBinTree X-Git-Tag: v2.1.0~235 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2dd8ef8823d3e9e47c226fcc0a039f5fb148f1eb;p=libcds.git TSan exam: update descriptor pool for EllenBinTree --- 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 )