DragonFly kernel List (threaded) for 2008-06
DragonFly BSD
DragonFly kernel List (threaded) for 2008-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: ocstat


From: "Nicolas Thery" <nthery@xxxxxxxxx>
Date: Thu, 5 Jun 2008 07:11:54 +0200

2008/6/4 Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>:
> On Wednesday 04 June 2008, Matthew Dillon wrote:
> [...]
>>       Objcache will use the flag to detect double-frees.
>
> Keep in mind that detecting a double-free may be good, but knowing where
> the previous free took place takes you more than halfway towards a solution.
> But this would require the debug code to be a bit more resource-intensive
> and also some use of the preprocessor...

Maybe we could optionally call a debug back-end allocator, in place of
the client-specified one, that allocates whatever additional memory is
needed (e.g. room for a (partial) call stack).



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]