apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject Re: apr_bucket_destroy & APR memory management
Date Wed, 08 Aug 2001 00:55:49 GMT
On Tue, 7 Aug 2001, Roy T. Fielding wrote:

> It only imposes the restriction that a routine cannot morph a bucket
> without also morphing the contents of that bucket, which in some cases
> means transferring the data and freeing the old allocation.

You have to use the original apr_bucket struct for the new morphed bucket
because you mess up the brigade otherwise, and even if you tried to
account for that, you'd still probably invalidate bucket pointers in the

> I would think that the bucket memory allocator and the bucket memory
> deallocator would have to be consistent.  Put it in the pool.

Huh?  What pool?


   Cliff Woolley
   Charlottesville, VA

View raw message