diff --git a/src/mem/metaslab.h b/src/mem/metaslab.h index cd820e2..399ffa5 100644 --- a/src/mem/metaslab.h +++ b/src/mem/metaslab.h @@ -92,12 +92,9 @@ namespace snmalloc head = (uint16_t)~0; } - void zero() + void init() { - head = 0; used = 0; - link = 0; - sizeclass = 0; next = 0; } diff --git a/src/mem/superslab.h b/src/mem/superslab.h index 0e4d32b..6c17b30 100644 --- a/src/mem/superslab.h +++ b/src/mem/superslab.h @@ -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