Current-Users 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 09:40:55AM +0900, enami tsugutomo wrote:
> Matthias Scheler <tron%zhadum.org.uk@localhost> writes:
> 
> > I've attached a new implementation which remembers the memory blocks
> > in a seperate tree
> 
> Now the scrubing part can be written like mark and sweep gc, ...

As "environ" is unsorted it would be expensive to look for the memory
referenced by every tree node.

> ... and can be called also when we detect that entire environ vector is
> replaced.

I was considering to add a special case which deletes all nodes in
tree when environ[0] == NULL. But it didn't considere it very
important.

        Kind regards

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


Home | Main Index | Thread Index | Old Index