Renamed zero to init for metaslab.

This commit is contained in:
Matthew Parkinson
2019-01-25 16:38:10 +00:00
parent e5c40c1231
commit 06ff1ffe0a
2 changed files with 2 additions and 5 deletions

View File

@@ -92,12 +92,9 @@ namespace snmalloc
head = (uint16_t)~0; head = (uint16_t)~0;
} }
void zero() void init()
{ {
head = 0;
used = 0; used = 0;
link = 0;
sizeclass = 0;
next = 0; next = 0;
} }

View File

@@ -94,7 +94,7 @@ namespace snmalloc
used = 0; used = 0;
for (size_t i = 0; i < SLAB_COUNT; i++) for (size_t i = 0; i < SLAB_COUNT; i++)
{ {
meta[i].zero(); meta[i].init();
} }
} }
#ifndef NDEBUG #ifndef NDEBUG