Rename slab_allocator to chunk_allocator
This commit is contained in:
committed by
Matthew Parkinson
parent
342d826310
commit
4a7cd268f8
@@ -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 "
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user