PostgreSQL Source Code  git master
SlabContext Struct Reference

Data Fields

MemoryContextData header
 
Size chunkSize
 
Size fullChunkSize
 
Size blockSize
 
Size headerSize
 
int chunksPerBlock
 
int minFreeChunks
 
int nblocks
 
dlist_head freelist [FLEXIBLE_ARRAY_MEMBER]
 

Detailed Description

Definition at line 63 of file slab.c.

Field Documentation

◆ blockSize

Size SlabContext::blockSize

Definition at line 69 of file slab.c.

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

◆ chunkSize

Size SlabContext::chunkSize

Definition at line 67 of file slab.c.

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

◆ chunksPerBlock

int SlabContext::chunksPerBlock

Definition at line 71 of file slab.c.

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

◆ freelist

dlist_head SlabContext::freelist[FLEXIBLE_ARRAY_MEMBER]

Definition at line 75 of file slab.c.

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

◆ fullChunkSize

Size SlabContext::fullChunkSize

Definition at line 68 of file slab.c.

Referenced by SlabAlloc(), SlabContextCreate(), SlabFree(), SlabGetChunkSpace(), and SlabStats().

◆ header

MemoryContextData SlabContext::header

Definition at line 65 of file slab.c.

Referenced by SlabFree(), and SlabStats().

◆ headerSize

Size SlabContext::headerSize

Definition at line 70 of file slab.c.

Referenced by SlabContextCreate(), and SlabStats().

◆ minFreeChunks

int SlabContext::minFreeChunks

Definition at line 72 of file slab.c.

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

◆ nblocks

int SlabContext::nblocks

Definition at line 73 of file slab.c.

Referenced by SlabAlloc(), SlabContextCreate(), SlabFree(), SlabIsEmpty(), SlabReset(), and SlabStats().


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