From 1418b96fb24bc4819cd012c55c658db92350494f Mon Sep 17 00:00:00 2001 From: joaquintides Date: Mon, 25 Dec 2023 13:02:57 +0100 Subject: [PATCH] capped size_ctrl.ml in update_size_ctrl --- include/boost/unordered/detail/foa/concurrent_table.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index ef506c1c..cea5be71 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -2011,6 +2011,8 @@ private: if(ssize_t(this->size_ctrl.ml)>=mcos)this->size_ctrl.ml-=mcos; else this->size_ctrl.ml=0; } + auto max_ml=super::initial_max_load(); + if(this->size_ctrl.ml>max_ml)this->size_ctrl.ml=max_ml; } void garbage_collect(garbage_vector& v,std::size_t max_epoch)