fully-static PALs

This commit is contained in:
Nathaniel Filardo
2020-09-07 10:42:10 +01:00
committed by Matthew Parkinson
parent cb1694f124
commit bf3c99d87f
10 changed files with 38 additions and 41 deletions

View File

@@ -37,7 +37,7 @@ namespace snmalloc
* clear the underlying memory range.
*/
template<bool page_aligned = false>
void zero(void* p, size_t size) noexcept
static void zero(void* p, size_t size) noexcept
{
// QEMU does not seem to be giving the desired behaviour for
// MADV_DONTNEED. switch back to memset only for QEMU.