From e91f743530ee178a489cb38aa16beecf62213ac3 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Tue, 19 Dec 2023 12:22:11 +0100 Subject: [PATCH] temporarily restricted gc to one designated thread --- include/boost/unordered/detail/foa/concurrent_table.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index fd413805..c016cf68 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -512,7 +512,8 @@ public: retired_element_allocator_type ral=this->al(); for(std::size_t i=0;idestroy_element(p); - auto pos=static_cast(e.p-this->arrays.elements()); + auto pos=static_cast(p-this->arrays.elements()); this->arrays.groups()[pos/N].reset(pos%N); e.epoch=retired_element::available_; ++rpos;