From c3fd09c421daf5b766cd0bc4cc90e061727527e0 Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Tue, 30 Jul 2024 16:05:08 +0200 Subject: [PATCH] Initialize core heaps for the total amount of CPU cores the machine has. --- src/mx/memory/fixed_size_allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mx/memory/fixed_size_allocator.h b/src/mx/memory/fixed_size_allocator.h index e4cfff1..8a4154c 100644 --- a/src/mx/memory/fixed_size_allocator.h +++ b/src/mx/memory/fixed_size_allocator.h @@ -296,7 +296,7 @@ public: } } - for (const auto core_id : core_set) + for (auto core_id = 0; core_id < system::topology::count_cores(); ++core_id) { const auto node_id = system::topology::node_id(core_id); _core_heaps[core_id] = CoreHeap{&_processor_heaps[node_id]};