TSan exam: update descriptor pool for EllenBinTree
authorkhizmax <libcds.dev@gmail.com>
Sun, 17 May 2015 14:31:51 +0000 (17:31 +0300)
committerkhizmax <libcds.dev@gmail.com>
Sun, 17 May 2015 14:31:51 +0000 (17:31 +0300)
tests/unit/ellen_bintree_update_desc_pool.h

index a3dcb85699f6a77c2a3caa8216152a8f5ee8e87a..e8158e9f622254854edca88863447710202f896f 100644 (file)
@@ -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 )