apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <i...@apache.org>
Subject Re: [PATCH] Default tagging of pools in debug mode
Date Sun, 13 Jan 2002 04:02:18 GMT
Sander Striker wrote:
>>From: Sander Striker [mailto:striker@apache.org]
>>Subject: RE: [PATCH] Default tagging of pools in debug mode
>>>We are doing something similar in subversion.  It might be
>>>useful to add this.  However, this will screw up stats and
>>>memory usage output (and it will ofcourse only work in
>>>when APR_POOL_DEBUG is defined).
>>Yes, this won't work.  The first time apr_pool_clear is
>>called, we end up with a bad tag pointer.  Ideas welcome.
>>A 'tag pool' (child of global_pool)?
> Nevermind.  I just thought of a good solution.  I'll commit
> it tomorrow.  First: apr_sleep(18000 * APR_USECS_PER_SEC);
> Sander

why not just use __FILE__##__LINE__
or what ever the macro is to join two things together in the preprocesor
there static strings, so no allocation required.

View raw message