diff --git a/src/mem/alloc.h b/src/mem/alloc.h index c721948..e39724d 100644 --- a/src/mem/alloc.h +++ b/src/mem/alloc.h @@ -1056,7 +1056,7 @@ namespace snmalloc } template - inline void* small_alloc(size_t size) + SNMALLOC_FAST_PATH void* small_alloc(size_t size) { MEASURE_TIME_MARKERS( small_alloc, diff --git a/src/mem/threadalloc.h b/src/mem/threadalloc.h index 56383e6..d23d4e7 100644 --- a/src/mem/threadalloc.h +++ b/src/mem/threadalloc.h @@ -181,7 +181,7 @@ namespace snmalloc * Entry point the allows libc to call into the allocator for per-thread * cleanup. */ - extern "C" void _malloc_thread_cleanup(void) + extern "C" void _malloc_thread_cleanup() { ThreadAllocLibcCleanup::inner_release(); }