MemoryProviderStateMixin is not a PAL

This commit is contained in:
Nathaniel Filardo
2020-09-07 11:57:38 +01:00
committed by Matthew Parkinson
parent d79a8184af
commit 1e8d0bd743
5 changed files with 26 additions and 27 deletions

View File

@@ -76,8 +76,8 @@ namespace snmalloc
return sizeclass;
}
template<ZeroMem zero_mem, typename MemoryProvider>
void* alloc(size_t size, MemoryProvider& memory_provider)
template<ZeroMem zero_mem, SNMALLOC_CONCEPT(ConceptPAL) PAL>
void* alloc(size_t size)
{
SNMALLOC_ASSERT(!full());
@@ -86,7 +86,7 @@ namespace snmalloc
free--;
if constexpr (zero_mem == YesZero)
memory_provider.zero(p, size);
PAL::zero(p, size);
else
UNUSED(size);