]> git.ipfire.org Git - thirdparty/squid.git/commit
Andres Kroonmaa's MemPool tidyup, take 1. Take a whole bunch of
authoradrian <>
Tue, 17 Oct 2000 14:06:01 +0000 (14:06 +0000)
committeradrian <>
Tue, 17 Oct 2000 14:06:01 +0000 (14:06 +0000)
commit58cd5bbda71007691fd080fd87bfa8b1111b7faa
tree903abc9aa83357a20f442db0937ee546113e6006
parentc8a9574cce1f5b8a5dff831d09610515d809b33d
Andres Kroonmaa's MemPool tidyup, take 1. Take a whole bunch of
xmalloc/xcalloc's and replace them with mempool'ed versions of
things. Not everything has been converted, but this is a start.
Notable weirdnesses are:

* aufs - there are now a few pools which are used for string allocation
  for things like object paths. This might not be the most optimal
  solution but its better than what existed.

* pconn.c - an initial pconn FD set is mempool'ed, and if the pconn set
  grows bigger than PCONN_FD_SZ it changes to xmalloc()

* client_side.c - the incoming request buffer is now initially mempooled,
  of size CLIENT_REQ_BUF_SZ (4096 bytes atm). If it needs to grow, it
  changes to xmalloc()
30 files changed:
include/util.h
lib/util.c
src/MemBuf.cc
src/cbdata.cc
src/client_side.cc
src/comm.cc
src/defines.h
src/disk.cc
src/enums.h
src/fqdncache.cc
src/fs/aufs/aiops.cc
src/fs/aufs/store_asyncufs.h
src/fs/aufs/store_dir_aufs.cc
src/fs/aufs/store_io_aufs.cc
src/fs/coss/store_dir_coss.cc
src/fs/diskd/store_dir_diskd.cc
src/fs/ufs/store_dir_ufs.cc
src/ipcache.cc
src/main.cc
src/mem.cc
src/pconn.cc
src/peer_select.cc
src/protos.h
src/stat.cc
src/stmem.cc
src/store_swapmeta.cc
src/store_swapout.cc
src/structs.h
src/tools.cc
src/typedefs.h