tech-userlevel archive

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

Re: Possible pthreads memory leak (Michael van Elst) writes:

> (Matthew Mondor) writes:
>>It seems to remain stable at 7084K/844K SIZE/RES for me with the
>>addition of another syscall.

>I think the fix is in version 1.113 of lib/libpthread/pthread.c.

and the pullup to netbsd-5 branch occured 6 days ago...

2010-01-11 01:47  snj

        * pthread.c ( Pull up following revision(s) (requested
          by christos in ticket #1235):         lib/libpthread/pthread.c:
          revision 1.113 Don't just look only at the first element in the
          deadqueue to find lwp's to reuse, because if we lose the race
          with the kernel we are never going to reuse any elements. Look in
          the whole list instead.

                                Michael van Elst
                                "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index