From 6188667476f8e85f9065b599a74249bac5c6ef5b Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 12 Sep 2019 17:32:51 +0100 Subject: [PATCH] Revert the change to make the pool global type safe. This adds lazy initialization, which adds a conditional branch on some hot paths. Fixes #93 --- src/mem/pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/pool.h b/src/mem/pool.h index 2736c56..8497664 100644 --- a/src/mem/pool.h +++ b/src/mem/pool.h @@ -41,7 +41,7 @@ namespace snmalloc static Pool* make() noexcept { - return Pool::make(default_memory_provider()); + return Pool::make(default_memory_provider); } template