DragonFly kernel List (threaded) for 2008-06
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: ocstat
:>> 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).
I would stick with the basics first. I don't think anything
sophisticated is needed, frankly. The first priority would be in
detecting that there's a problem in the first place. Finding the
original free could be as simple as adding a couple of KTRs.
-Matt
Matthew Dillon
<dillon@backplane.com>
- References:
- ocstat
- From: "Nicolas Thery" <nthery@gmail.com>
- Re: ocstat
- From: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
- Re: ocstat
- From: Matthew Dillon <dillon@apollo.backplane.com>
- Re: ocstat
- From: Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>
- Re: ocstat
- From: "Nicolas Thery" <nthery@gmail.com>
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]