Reduce dependence on C++ runtime
If the external thread statics are used, then we don't need to include some C++ runtime concepts. This refactoring moves some global initialization under conditional compilation.
This commit is contained in:
@@ -38,7 +38,7 @@ namespace snmalloc
|
||||
|
||||
static AllocPool* make() noexcept
|
||||
{
|
||||
return make(default_memory_provider);
|
||||
return make(default_memory_provider());
|
||||
}
|
||||
|
||||
Alloc* acquire()
|
||||
|
||||
Reference in New Issue
Block a user