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

Go to the source code of this file.

Functions

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 memFreeBuf (size_t, void *const buf)
 
static void myFree (void *const buf)
 
FREEmemFreeBufFunc (size_t)
 

Variables

static int Alive = 0
 

Function Documentation

◆ memAllocBuf()

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

Definition at line 46 of file minimal.cc.

Referenced by memAllocString().

◆ memAllocRigid()

void * memAllocRigid ( const size_t  netSize)

Definition at line 78 of file minimal.cc.

◆ memAllocString()

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

Definition at line 66 of file minimal.cc.

◆ memFree()

void memFree ( void *  memory,
int  type 
)

Definition at line 60 of file minimal.cc.

◆ memFreeBuf()

void memFreeBuf ( size_t  size,
void *const  buf 
)

Definition at line 84 of file minimal.cc.

◆ memFreeBufFunc()

FREE * memFreeBufFunc ( size_t  size)

Definition at line 96 of file minimal.cc.

◆ memFreeString()

void memFreeString ( size_t  size,
void *  memory 
)

Definition at line 72 of file minimal.cc.

◆ memReallocBuf()

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

Definition at line 53 of file minimal.cc.

◆ myFree()

static void myFree ( void *const  buf)
static

Definition at line 90 of file minimal.cc.

References xfree.

Referenced by memFreeBufFunc().

Variable Documentation

◆ Alive

int Alive = 0
static

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 MemAllocator so we maintain a global counter instead. We probably do not have to maintain this statistics at all.

Definition at line 17 of file minimal.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors