forward.h File Reference
#include "mem/AllocatorProxy.h"
#include <iosfwd>
Include dependency graph for forward.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Mem
 Memory Management.
 

Typedefs

typedef void FREE(void *)
 

Enumerations

enum  mem_type {
  MEM_NONE ,
  MEM_2K_BUF ,
  MEM_4K_BUF ,
  MEM_8K_BUF ,
  MEM_16K_BUF ,
  MEM_32K_BUF ,
  MEM_64K_BUF ,
  MEM_DREAD_CTRL ,
  MEM_DWRITE_Q ,
  MEM_MD5_DIGEST ,
  MEM_MAX
}
 Types of memory pool which do not yet use MEMPROXY_CLASS() API. More...
 

Functions

void Mem::Init ()
 
void Mem::Stats (StoreEntry *)
 
void Mem::CleanIdlePools (void *unused)
 
void Mem::Report (std::ostream &)
 
void Mem::PoolReport (const PoolStats *, const PoolMeter *, 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 * memAllocBuf (size_t net_size, size_t *gross_size)
 
void * memAllocRigid (size_t net_size)
 
void * memReallocBuf (void *buf, size_t net_size, size_t *gross_size)
 
void memFree (void *, int type)
 Free a element allocated by memAllocate() More...
 
void memFreeString (size_t size, void *)
 
void memFreeBuf (size_t size, void *)
 
void memFreeRigid (void *, size_t net_size)
 
FREEmemFreeBufFunc (size_t size)
 
int memInUse (mem_type)
 
void memDataInit (mem_type, const char *, size_t, int, bool doZero=true)
 
void memCheckInit (void)
 
size_t memStringCount ()
 

Variables

const size_t squidSystemPageSize
 

Typedef Documentation

◆ FREE

typedef void FREE(void *)
Deprecated:
use MEMPROXY_CLASS instead.

Definition at line 37 of file forward.h.

Enumeration Type Documentation

◆ mem_type

enum mem_type
Enumerator
MEM_NONE 
MEM_2K_BUF 
MEM_4K_BUF 
MEM_8K_BUF 
MEM_16K_BUF 
MEM_32K_BUF 
MEM_64K_BUF 
MEM_DREAD_CTRL 
MEM_DWRITE_Q 
MEM_MD5_DIGEST 
MEM_MAX 

Definition at line 40 of file forward.h.

Function Documentation

◆ memAllocate()

◆ memAllocBuf()

◆ memAllocRigid()

void * memAllocRigid ( size_t  net_size)

Definition at line 78 of file minimal.cc.

References memFindStringPool(), StrCountMeter, StrVolumeMeter, and xmalloc.

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

◆ memAllocString()

void * memAllocString ( size_t  net_size,
size_t gross_size 
)

◆ memCheckInit()

void memCheckInit ( void  )

Definition at line 471 of file old_api.cc.

References assert, GetPool(), MEM_MAX, and MEM_NONE.

Referenced by mainInitialize().

◆ memClean()

◆ memCleanModule()

void memCleanModule ( void  )

◆ memConfigure()

void memConfigure ( void  )

◆ memDataInit()

void memDataInit ( mem_type  type,
const char *  name,
size_t  size,
int  ,
bool  doZero = true 
)

Definition at line 200 of file old_api.cc.

References assert, GetPool(), memPoolCreate, size, and Mem::Allocator::zeroBlocks().

Referenced by Mem::Init().

◆ memFree()

◆ memFreeBuf()

◆ memFreeBufFunc()

◆ memFreeRigid()

void memFreeRigid ( void *  buf,
size_t  net_size 
)

Definition at line 84 of file minimal.cc.

References memFindStringPool(), StrCountMeter, StrVolumeMeter, and xfree.

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

◆ memFreeString()

void memFreeString ( size_t  size,
void *  memory 
)

Definition at line 72 of file minimal.cc.

References assert, memFindStringPool(), size, StrCountMeter, StrVolumeMeter, and xfree.

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

◆ memInitModule()

void memInitModule ( void  )

◆ memInUse()

int memInUse ( mem_type  type)

Definition at line 501 of file old_api.cc.

References Mem::Allocator::getInUseCount(), and GetPool().

◆ memReallocBuf()

void * memReallocBuf ( void *  buf,
size_t  net_size,
size_t gross_size 
)

◆ memStringCount()

size_t memStringCount ( )

Definition at line 264 of file old_api.cc.

References Mem::Allocator::getInUseCount(), GetStrPool(), and mem_str_pool_count.

Variable Documentation

◆ squidSystemPageSize

const size_t squidSystemPageSize
extern

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors