* Matt Dillon <[EMAIL PROTECTED]> [001213 17:25] wrote:
> 
> :I guess the gc has to stay.
> :
> :dammit. :)
> :
> :My apologies for wasting everyone's time here.
> :
> :-- 
> :-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
> 
>     No waste at all, Alfred, the file descriptor passing code had been
>     broken for over 10 years precisely because of its complexity.  Rewriting
>     the GC to be more efficient essentially requires using deep graph theory
>     to locate isolated loops of arbitrary complexity.
> 
>     p.s. many object oriented language garbage collectors have the same
>     problem.  create object A, create object B, A references B, B references A,
>     drop A, drop B.  A and B still have references and don't get cleaned up.
>     Fun.

Are you saying the code in place is broken?  If so I'll spend some
time looking at it and the Linux implementation to figure if at
least one of us gets it right and try to find some sort of solution.

Obviously the easiest way would be to disallow passing of any
descriptors that have descriptors in thier socketbuffers.

Since almost no one uses this code, and I hardly see a reason for
allowing that type of operation (passing af_unix fds with fds in
flight) it might be a good idea to just disallow that sort of
operation.

It would definetly simplify and probably speed up the code.

-- 
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to