libc: Allocate memory cacheline-aligned by default to prevent false sharing.

This commit is contained in:
Michael Mueller
2022-11-29 12:27:18 +01:00
parent 2a8fe2b335
commit cd7780fd50

View File

@@ -86,7 +86,7 @@ class Libc::Malloc
SLAB_START = 5, /* 32 bytes (log2) */ SLAB_START = 5, /* 32 bytes (log2) */
SLAB_STOP = 11, /* 2048 bytes (log2) */ SLAB_STOP = 11, /* 2048 bytes (log2) */
NUM_SLABS = (SLAB_STOP - SLAB_START) + 1, NUM_SLABS = (SLAB_STOP - SLAB_START) + 1,
DEFAULT_ALIGN = 16 DEFAULT_ALIGN = 64
}; };
struct Metadata struct Metadata