Replace the old BSD malloc code with a port of our slab allocator.
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 22 Apr 2009 19:18:07 +0000 (12:18 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 22 Apr 2009 19:18:07 +0000 (12:18 -0700)
commit82949828d84137a0576569c347cdfa5a22164447
treef658d5491a4ef4995c1094f4698b37e447b24c1e
parentf14e258b96dbdf4a63dbe549cbc6e8f77686cbe5
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.
lib/libc/gen/_spinlock_stub.c
lib/libc/include/spinlock.h
lib/libc/stdlib/Makefile.inc
lib/libc/stdlib/nmalloc.c [new file with mode: 0644]
lib/libthread_xu/thread/thr_spinlock.c
libexec/rtld-elf/malloc.c