DragonFly BSD
DragonFly commits List (threaded) for 2010-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: libc - Fix livelock in nmalloc


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 9 Oct 2010 09:30:18 -0700 (PDT)

commit 4cd64cfec8d5e4d67ed8ee045e6d875a398a7892
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Sat Oct 9 09:26:46 2010 -0700

    libc - Fix livelock in nmalloc
    
    * free() -> _slabfree() was turning around and calling _slaballoc()
      with the depot lock held, which could lead to a livelock.  Fix by
      unlocking the depot lock around the call.
    
    * Clean up and document other unrelated bits of nmalloc(). In particular,
      clean up magazine_alloc().
    
    Reported-by: Siju George <sgeorge.ml@gmail.com>, and others

Summary of changes:
 lib/libc/stdlib/nmalloc.c |  129 +++++++++++++++++++++++----------------------
 1 files changed, 65 insertions(+), 64 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4cd64cfec8d5e4d67ed8ee045e6d875a398a7892


-- 
DragonFly BSD source repository



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