Rename slab_allocator to chunk_allocator
This commit is contained in:
committed by
Matthew Parkinson
parent
342d826310
commit
4a7cd268f8
@@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "../backend/backend.h"
|
||||
#include "../mem/chunkallocator.h"
|
||||
#include "../mem/corealloc.h"
|
||||
#include "../mem/pool.h"
|
||||
#include "../mem/slaballocator.h"
|
||||
#include "commonconfig.h"
|
||||
|
||||
namespace snmalloc
|
||||
@@ -19,15 +19,15 @@ namespace snmalloc
|
||||
|
||||
private:
|
||||
using Backend = BackendAllocator<PAL, true>;
|
||||
inline static ChunkAllocatorState slab_allocator_state;
|
||||
inline static ChunkAllocatorState chunk_allocator_state;
|
||||
|
||||
inline static GlobalPoolState alloc_pool;
|
||||
|
||||
public:
|
||||
static ChunkAllocatorState&
|
||||
get_slab_allocator_state(typename Backend::LocalState*)
|
||||
get_chunk_allocator_state(typename Backend::LocalState*)
|
||||
{
|
||||
return slab_allocator_state;
|
||||
return chunk_allocator_state;
|
||||
}
|
||||
|
||||
static GlobalPoolState& pool()
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "../backend/backend.h"
|
||||
#include "../mem/chunkallocator.h"
|
||||
#include "../mem/corealloc.h"
|
||||
#include "../mem/pool.h"
|
||||
#include "../mem/slaballocator.h"
|
||||
#include "commonconfig.h"
|
||||
|
||||
#ifdef SNMALLOC_TRACING
|
||||
@@ -37,7 +37,7 @@ namespace snmalloc
|
||||
private:
|
||||
using Backend = BackendAllocator<Pal, false>;
|
||||
SNMALLOC_REQUIRE_CONSTINIT
|
||||
inline static ChunkAllocatorState slab_allocator_state;
|
||||
inline static ChunkAllocatorState chunk_allocator_state;
|
||||
|
||||
SNMALLOC_REQUIRE_CONSTINIT
|
||||
inline static GlobalPoolState alloc_pool;
|
||||
@@ -50,9 +50,9 @@ namespace snmalloc
|
||||
|
||||
public:
|
||||
static ChunkAllocatorState&
|
||||
get_slab_allocator_state(Backend::LocalState* = nullptr)
|
||||
get_chunk_allocator_state(Backend::LocalState* = nullptr)
|
||||
{
|
||||
return slab_allocator_state;
|
||||
return chunk_allocator_state;
|
||||
}
|
||||
|
||||
static GlobalPoolState& pool()
|
||||
|
||||
Reference in New Issue
Block a user