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
This commit is contained in:
David Chisnall
2019-09-12 17:32:51 +01:00
parent 0b2b4d68a2
commit 6188667476

View File

@@ -41,7 +41,7 @@ namespace snmalloc
static Pool* make() noexcept
{
return Pool::make(default_memory_provider());
return Pool::make(default_memory_provider);
}
template<typename... Args>