slab: fix smp false sharing

This commit is contained in:
Matheus
2026-07-17 18:06:25 -03:00
parent babc6f3e06
commit 02ba3e3939
2 changed files with 29 additions and 10 deletions
+2 -1
View File
@@ -53,7 +53,8 @@ typedef struct scache_t {
magazine_t *empty_depot;
magazine_t *full_depot;
cache_per_cpu_t per_cpu[];
size_t per_cpu_stride;
cache_per_cpu_t *per_cpu;
} scache_t;
void *slab_allocate(scache_t *cache);