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
This commit is contained in:
Christian Helmuth 2023-12-04 13:10:38 +01:00 committed by Norman Feske
parent 0046edf761
commit 58dba227ce

View File

@ -34,7 +34,7 @@ namespace Core {
* We take the knowledge about the used backing-store allocator (sliced * We take the knowledge about the used backing-store allocator (sliced
* heap) into account to make sure that slab blocks fill whole pages. * 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; Cpu_thread_allocator;
} }