David McCormack wrote:
> In squid.h, the comment should point you towards mem.c and say, use
> memAllocate and memFree...
Allowable memory allocation methods:
xmalloc/ xcalloc / xrealloc / safe_free
memAllocate / memFree
memPoolAlloc / memPoolFree
The x* functions perform a bit more error checking than their normal
versions.
memAllocate/Free is simplified wrappers on top of the memPool functions,
which hides away most of the gory details..
The memPool functions keep a more detailed statistics on memory usage,
and also limits memory fragmentation.
Regards
Henrik Nordström
Squid hacker
Received on Thu Aug 03 2000 - 16:25:13 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:34 MST