File Reference
#include "squid.h"
#include "mem/AllocatorProxy.h"
#include "mem/forward.h"
Include dependency graph for

Go to the source code of this file.


void * memAllocBuf (const size_t netSize, size_t *const grossSize)
void * memReallocBuf (void *const oldBuf, const size_t netSize, size_t *const grossSize)
void memFree (void *memory, int)
 Free a element allocated by memAllocate() More...
void * memAllocString (const size_t netSize, size_t *const grossSize)
void memFreeString (size_t, void *memory)
void * memAllocRigid (const size_t netSize)
void memFreeRigid (void *const buf, size_t)
void memFreeBuf (size_t, void *const buf)
static void myFree (void *const buf)
FREEmemFreeBufFunc (size_t)


static int Alive = 0

Function Documentation

◆ memAllocBuf()

void * memAllocBuf ( const size_t  netSize,
size_t *const  grossSize 

Definition at line 46 of file

Referenced by memAllocString().

◆ memAllocRigid()

void * memAllocRigid ( const size_t  netSize)

Definition at line 78 of file

◆ memAllocString()

void * memAllocString ( const size_t  netSize,
size_t *const  grossSize 

Definition at line 66 of file

◆ memFree()

void memFree ( void *  memory,
int  type 

Definition at line 60 of file

◆ memFreeBuf()

void memFreeBuf ( size_t  size,
void *const  buf 

Definition at line 90 of file

◆ memFreeBufFunc()

FREE * memFreeBufFunc ( size_t  size)

Definition at line 102 of file

◆ memFreeRigid()

void memFreeRigid ( void *const  buf,
size_t  net_size 

Definition at line 84 of file

◆ memFreeString()

void memFreeString ( size_t  size,
void *  memory 

Definition at line 72 of file

◆ memReallocBuf()

void * memReallocBuf ( void *const  oldBuf,
const size_t  netSize,
size_t *const  grossSize 

Definition at line 53 of file

◆ myFree()

static void myFree ( void *const  buf)

Definition at line 96 of file

References xfree.

Referenced by memFreeBufFunc().

Variable Documentation

◆ Alive

int Alive = 0

The number of currently alive objects (poor man's meter.alloc=meter.inuse). Technically, this is supposed to be a per-allocator statistics, but AllocatorProxy is not a Mem::Allocator so we maintain a global counter instead. We probably do not have to maintain this statistics at all.

Definition at line 17 of file






Web Site Translations