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

git: libc - nmalloc: Continue in a do/while(0) loop exits the loop, making the mtmagazine routines not use the previous magazine.


From: Venkatesh Srinivas <vsrinivas@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Sep 2010 22:08:13 -0700 (PDT)

commit 7b033ca7afcd5ded9c4102c353b86dfbe297a043
Author: Venkatesh Srinivas <me@endeavour.zapto.org>
Date:   Mon Sep 20 21:59:48 2010 -0700

    libc - nmalloc: Continue in a do/while(0) loop exits the loop, making the mtmagazine routines not use the previous magazine.
    
    Also handle null return from _vmem_alloc in burst allocation path.
    
    Found-by: dillon

Summary of changes:
 lib/libc/stdlib/nmalloc.c |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7b033ca7afcd5ded9c4102c353b86dfbe297a043


-- 
DragonFly BSD source repository



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