DragonFly-2.3.0.757.g829498 master lib/libc/gen _spinlock_stub.c lib/libc/include spinlock.h lib/libc/stdlib Makefile.inc nmalloc.c lib/libthread_xu/thread thr_spinlock.c libexec/rtld-elf malloc.c

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Apr 22 14:54:00 PDT 2009


commit 82949828d84137a0576569c347cdfa5a22164447
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Apr 22 12:18:07 2009 -0700

    Replace the old BSD malloc code with a port of our slab allocator.
    
    This should give us a better base with which we can work up a
    more thread-friendly user malloc.  Buildworld performance is about
    the same (just slightly faster).  malloc performance is about twice as
    fast as the original.

Summary of changes:
 lib/libc/gen/_spinlock_stub.c          |   14 +-
 lib/libc/include/spinlock.h            |    2 +
 lib/libc/stdlib/Makefile.inc           |    4 +-
 lib/libc/stdlib/nmalloc.c              | 1019 ++++++++++++++++++++++++++++++++
 lib/libthread_xu/thread/thr_spinlock.c |   20 +
 libexec/rtld-elf/malloc.c              |   15 +
 6 files changed, 1071 insertions(+), 3 deletions(-)
 create mode 100644 lib/libc/stdlib/nmalloc.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/82949828d84137a0576569c347cdfa5a22164447


-- 
DragonFly BSD source repository





More information about the Commits mailing list