git: libc - Fix livelock in nmalloc

Matthew Dillon dillon at
Sat Oct 9 09:31:11 PDT 2010

commit 4cd64cfec8d5e4d67ed8ee045e6d875a398a7892
Author: Matthew Dillon <dillon at>
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 < at>, and others

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

DragonFly BSD source repository

More information about the Commits mailing list