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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user