diff --git a/src/mem/threadalloc.h b/src/mem/threadalloc.h index b5b24d3..67e011c 100644 --- a/src/mem/threadalloc.h +++ b/src/mem/threadalloc.h @@ -125,11 +125,15 @@ namespace snmalloc */ static SNMALLOC_FAST_PATH Alloc* get() { +#ifdef USE_MALLOC + return get_reference(); +#else auto alloc = get_reference(); auto new_alloc = lazy_replacement(alloc); return (likely(new_alloc == nullptr)) ? alloc : reinterpret_cast(new_alloc); +#endif } };