From 1e65aafa06e24b4193f8b7fc6f6c5002ac687808 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Fri, 5 Jul 2019 09:38:58 +0100 Subject: [PATCH] Add missing fast-path annotations. --- src/mem/alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mem/alloc.h b/src/mem/alloc.h index 67dd05e..c7dac3c 100644 --- a/src/mem/alloc.h +++ b/src/mem/alloc.h @@ -288,7 +288,7 @@ namespace snmalloc size_t size, ZeroMem zero_mem = NoZero, AllowReserve allow_reserve = YesReserve> - ALLOCATOR void* alloc() + SNMALLOC_FAST_PATH ALLOCATOR void* alloc() { static_assert(size != 0, "Size must not be zero."); #ifdef USE_MALLOC @@ -324,7 +324,7 @@ namespace snmalloc } template - inline ALLOCATOR void* alloc(size_t size) + SNMALLOC_FAST_PATH ALLOCATOR void* alloc(size_t size) { #ifdef USE_MALLOC static_assert(