mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
slab: fix smp false sharing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user