Renamed zero to init for metaslab.
This commit is contained in:
@@ -92,12 +92,9 @@ namespace snmalloc
|
||||
head = (uint16_t)~0;
|
||||
}
|
||||
|
||||
void zero()
|
||||
void init()
|
||||
{
|
||||
head = 0;
|
||||
used = 0;
|
||||
link = 0;
|
||||
sizeclass = 0;
|
||||
next = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace snmalloc
|
||||
used = 0;
|
||||
for (size_t i = 0; i < SLAB_COUNT; i++)
|
||||
{
|
||||
meta[i].zero();
|
||||
meta[i].init();
|
||||
}
|
||||
}
|
||||
#ifndef NDEBUG
|
||||
|
||||
Reference in New Issue
Block a user