tech-userlevel archive

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

Re: Improved implementation of *env(3) functions in "libc"



On Mon, Nov 15, 2010 at 08:53:27AM +0000, Matthias Scheler wrote:
> > > Now the scrubing part can be written like mark and sweep gc, ...
[...]
> I think I understand now what you mean:
> 1.) Iterate over "environ" and mark all RB tree nodes whose memory block
>     is still referenced.
> 2.) Iterate over the RB tree and remove all nodes which aren't marked.

I've committed environment scrubbing using that approach to
NetBSD-current yesterday.

        Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/


Home | Main Index | Thread Index | Old Index