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

Go to the source code of this file.


#define STUB_API   "mem/"


void CleanIdlePools (void *)
void Report (std::ostream &)
void PoolReport (const MemPoolStats *, const MemPoolMeter *, std::ostream &)
void memClean (void)
 Main cleanup handler. More...
void memInitModule (void)
void memCleanModule (void)
void memConfigure (void)
void * memAllocate (mem_type)
 Allocate one element from the typed pool. More...
void * memAllocString (size_t net_size, size_t *gross_size)
void * memAllocRigid (size_t net_size)
void * memAllocBuf (size_t net_size, size_t *gross_size)
void * memReallocBuf (void *oldbuf, size_t net_size, size_t *gross_size)
void memFree (void *p, int)
 Free a element allocated by memAllocate() More...
void memFreeString (size_t, void *buf)
void memFreeRigid (void *buf, size_t)
void memFreeBuf (size_t, void *buf)
static void cxx_xfree (void *ptr)
FREEmemFreeBufFunc (size_t)
int memInUse (mem_type)
void memDataInit (mem_type, const char *, size_t, int, bool)
void memCheckInit (void)
MemPoolIteratormemPoolIterate (void)
MemImplementingAllocatormemPoolIterateNext (MemPoolIterator *)
void memPoolIterateDone (MemPoolIterator **)
int memPoolGetGlobalStats (MemPoolGlobalStats *)
int memPoolsTotalAllocated (void)


static MemPools tmpMemPools

Macro Definition Documentation


#define STUB_API   "mem/"

Definition at line 11 of file

Function Documentation

◆ CleanIdlePools()

void CleanIdlePools ( void *  )

◆ cxx_xfree()

static void cxx_xfree ( void *  ptr)

Definition at line 72 of file

References xfree.

Referenced by memFreeBufFunc().

◆ memAllocate()

◆ memAllocBuf()

void* memAllocBuf ( size_t  net_size,
size_t gross_size 

◆ memAllocRigid()

void* memAllocRigid ( size_t  net_size)

Definition at line 43 of file

References xmalloc.

Referenced by PoolingAllocator< Value >::allocate().

◆ memAllocString()

void* memAllocString ( size_t  net_size,
size_t gross_size 

Definition at line 41 of file

References memAllocBuf().

Referenced by String::allocBuffer(), and MemBlob::memAlloc().

◆ memCheckInit()

void memCheckInit ( void  )

Definition at line 76 of file

Referenced by mainInitialize().

◆ memClean()

void memClean ( void  )

Definition at line 30 of file

Referenced by SquidShutdown().

◆ memCleanModule()

void memCleanModule ( void  )

Definition at line 32 of file

◆ memConfigure()

void memConfigure ( void  )

Set to configured value first

Definition at line 33 of file

Referenced by configDoConfigure().

◆ memDataInit()

void memDataInit ( mem_type  ,
const char *  ,
size_t  ,
int  ,

Definition at line 75 of file

◆ memFree()

◆ memFreeBuf()

void memFreeBuf ( size_t  ,
void *  buf 

◆ memFreeBufFunc()

FREE* memFreeBufFunc ( size_t  )

Definition at line 73 of file

References cxx_xfree().

Referenced by MemBuf::freeFunc(), and Rock::IoState::writeBufToDisk().

◆ memFreeRigid()

void memFreeRigid ( void *  buf,

Definition at line 70 of file

References xfree.

Referenced by PoolingAllocator< Value >::deallocate().

◆ memFreeString()

void memFreeString ( size_t  ,
void *  buf 

Definition at line 69 of file

References xfree.

Referenced by String::clean(), and MemBlob::~MemBlob().

◆ memInitModule()

void memInitModule ( void  )

Definition at line 31 of file

◆ memInUse()

int memInUse ( mem_type  )

Definition at line 74 of file

◆ memReallocBuf()

void* memReallocBuf ( void *  oldbuf,
size_t  net_size,
size_t gross_size 

◆ PoolReport()

◆ Report()

Variable Documentation

◆ tmpMemPools

MemPools tmpMemPools

Definition at line 81 of file






Web Site Translations