From f55e6ac290ede69405f223e0f4a31b8cd3e24877 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Mon, 8 Jan 2024 11:31:39 +0100 Subject: [PATCH] made gc thread local --- .../unordered/detail/foa/concurrent_table.hpp | 33 +++++++++---------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index 4fe6eca7..d36bd7d0 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -513,7 +513,6 @@ public: retired_element_allocator_type ral=this->al(); for(std::size_t i=0;i::type; - epoch_type epoch=0; + epoch_type epoch=std::size_t(-1); std::atomic epoch_bump=0; retired_element* retired_elements; std::atomic wpos=0; @@ -2037,7 +2037,7 @@ private: std::size_t e=retired_element::reserved_; for(std::size_t i=0;i