summaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-11-09 14:34:21 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-11-09 15:35:40 -0500
commitc745df94a182b8a569cb833ecfbe8da33bf01f98 (patch)
treed64642a509a2dd641bb851ec7c338e0558263ee7 /src/alloc.c
parent0a5091a9005b485fccad689a4cbf081802860a5a (diff)
downloadbfs-c745df94a182b8a569cb833ecfbe8da33bf01f98.tar.xz
config: New attr_noinline and attr_cold macros
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 0b978ba..3b9972f 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -107,6 +107,7 @@ void arena_init(struct arena *arena, size_t align, size_t size) {
}
/** Allocate a new slab. */
+attr_cold
static int slab_alloc(struct arena *arena) {
void **slabs = realloc(arena->slabs, sizeof_array(void *, arena->nslabs + 1));
if (!slabs) {