PostgreSQL Source Code  git master
SlabContext Struct Reference

Data Fields

MemoryContextData header
 
uint32 chunkSize
 
uint32 fullChunkSize
 
uint32 blockSize
 
int32 chunksPerBlock
 
int32 curBlocklistIndex
 
int32 blocklist_shift
 
dclist_head emptyblocks
 
dlist_head blocklist [SLAB_BLOCKLIST_COUNT]
 

Detailed Description

Definition at line 103 of file slab.c.

Field Documentation

◆ blocklist

◆ blocklist_shift

int32 SlabContext::blocklist_shift

Definition at line 118 of file slab.c.

Referenced by SlabBlocklistIndex(), and SlabContextCreate().

◆ blockSize

uint32 SlabContext::blockSize

Definition at line 109 of file slab.c.

Referenced by SlabAllocFromNewBlock(), SlabContextCreate(), SlabFree(), SlabReset(), and SlabStats().

◆ chunkSize

uint32 SlabContext::chunkSize

Definition at line 107 of file slab.c.

Referenced by SlabAlloc(), SlabAllocSetupNewChunk(), SlabContextCreate(), SlabFree(), and SlabRealloc().

◆ chunksPerBlock

int32 SlabContext::chunksPerBlock

◆ curBlocklistIndex

int32 SlabContext::curBlocklistIndex

Definition at line 111 of file slab.c.

Referenced by SlabAlloc(), SlabAllocFromNewBlock(), SlabContextCreate(), SlabFree(), and SlabReset().

◆ emptyblocks

dclist_head SlabContext::emptyblocks

Definition at line 120 of file slab.c.

Referenced by SlabAllocFromNewBlock(), SlabContextCreate(), SlabFree(), SlabReset(), and SlabStats().

◆ fullChunkSize

uint32 SlabContext::fullChunkSize

◆ header

MemoryContextData SlabContext::header

Definition at line 105 of file slab.c.

Referenced by SlabFree(), and SlabGetChunkContext().


The documentation for this struct was generated from the following file: