From cf6f4023bb5517b00f57c00f5e4251c10aee90b5 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Mon, 17 Oct 2022 13:19:57 -0700 Subject: [PATCH] Make sure mask is properly cleared during rehash cleanup --- include/boost/unordered/detail/foa.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 448ba371..eef0729c 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1669,6 +1669,7 @@ private: auto nz=unchecked_countr_zero(mask); pg->reset(nz); if(!(--num_tx))goto continue_; + mask&=mask-1; } } continue_: