httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject palloc without a pool (was Re: cvs commit: apache-2.0/src/lib/apr/network_io/unix sockets.c)
Date Tue, 07 Sep 1999 21:54:56 GMT

On 7 Sep 1999 wrote:

>   Allor ap_palloc to work without a pool.  Basically, this just uses malloc.
>   This also sets us up to allow multiple allocation methods in the same program.


if you're going to use malloc like this, then just use malloc.  otherwise
you're paying a conditional test on every call to palloc.  not to mention
that there's no free() function... so you have to use free() eventually
anyhow, which seems to destroy the abstraction.


View raw message