Rename slab_allocator to chunk_allocator

This commit is contained in:
Matthew Parkinson
2021-10-20 11:12:09 +01:00
committed by Matthew Parkinson
parent 342d826310
commit 4a7cd268f8
7 changed files with 17 additions and 17 deletions

View File

@@ -88,7 +88,7 @@ namespace snmalloc
RemoteAllocator* remote)
{
ChunkAllocatorState& state =
SharedStateHandle::get_slab_allocator_state(&local_state);
SharedStateHandle::get_chunk_allocator_state(&local_state);
if (slab_sizeclass >= NUM_SLAB_SIZES)
{
@@ -140,7 +140,7 @@ namespace snmalloc
ChunkRecord* p,
size_t slab_sizeclass)
{
auto& state = SharedStateHandle::get_slab_allocator_state(&local_state);
auto& state = SharedStateHandle::get_chunk_allocator_state(&local_state);
#ifdef SNMALLOC_TRACING
std::cout << "Return slab:" << p->meta_common.chunk.unsafe_ptr()
<< " slab_sizeclass " << slab_sizeclass << " size "

View File

@@ -2,12 +2,12 @@
#include "../ds/defines.h"
#include "allocconfig.h"
#include "chunkallocator.h"
#include "localcache.h"
#include "metaslab.h"
#include "pool.h"
#include "remotecache.h"
#include "sizeclasstable.h"
#include "slaballocator.h"
namespace snmalloc
{

View File

@@ -3,8 +3,8 @@
#include "../ds/flaglock.h"
#include "../ds/mpmcstack.h"
#include "../pal/pal_concept.h"
#include "chunkallocator.h"
#include "pooled.h"
#include "slaballocator.h"
namespace snmalloc
{