stub_libmem.cc File Reference
#include "squid.h"
#include "tests/STUB.h"
#include "mem/Allocator.h"
#include "mem/AllocatorProxy.h"
#include "mem/forward.h"
#include "mem/Pool.h"
#include "mem/Stats.h"
Include dependency graph for stub_libmem.cc:

Go to the source code of this file.

Macros

#define STUB_API   "mem/libmem.la"
 

Functions

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 memFreeBuf (size_t, void *buf)
 
static void cxx_xfree (void *ptr)
 
FREEmemFreeBufFunc (size_t)
 
int memInUse (mem_type) STUB_RETVAL(0) static MemPools tmpMemPools
 

Macro Definition Documentation

◆ STUB_API

#define STUB_API   "mem/libmem.la"

Definition at line 11 of file stub_libmem.cc.

Function Documentation

◆ cxx_xfree()

static void cxx_xfree ( void *  ptr)
static

Definition at line 65 of file stub_libmem.cc.

References xfree.

Referenced by memFreeBufFunc().

◆ memAllocBuf()

◆ memFree()

void memFree ( void *  p,
int   
)

◆ memFreeBuf()

◆ memFreeBufFunc()

FREE* memFreeBufFunc ( size_t  )

Definition at line 66 of file stub_libmem.cc.

References cxx_xfree().

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

◆ memInUse()

int memInUse ( mem_type  )

Definition at line 344 of file old_api.cc.

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

◆ memReallocBuf()

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

Definition at line 54 of file stub_libmem.cc.

References xrealloc().

Referenced by MemBuf::grow(), and Ftp::Client::handleControlReply().

 

Introduction

Documentation

Support

Miscellaneous