From 58dba227cecc67e68d8bae1478d318606fb8d406 Mon Sep 17 00:00:00 2001
From: Christian Helmuth <christian.helmuth@genode-labs.com>
Date: Mon, 4 Dec 2023 13:10:38 +0100
Subject: [PATCH] base: number of CPU components per slab block

On some platforms, only two CPU-thread component objects fit into on
page-sized slab block.

Issue #3834
---
 repos/base/src/core/include/cpu_thread_allocator.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/repos/base/src/core/include/cpu_thread_allocator.h b/repos/base/src/core/include/cpu_thread_allocator.h
index 69a82d5bf7..aed50ebce6 100644
--- a/repos/base/src/core/include/cpu_thread_allocator.h
+++ b/repos/base/src/core/include/cpu_thread_allocator.h
@@ -34,7 +34,7 @@ namespace Core {
 	 * We take the knowledge about the used backing-store allocator (sliced
 	 * heap) into account to make sure that slab blocks fill whole pages.
 	 */
-	typedef Tslab<Cpu_thread_component, get_page_size() - Sliced_heap::meta_data_size()>
+	typedef Tslab<Cpu_thread_component, get_page_size() - Sliced_heap::meta_data_size(), 2>
 	        Cpu_thread_allocator;
 }