Slab allocator
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 19 Oct 2009 00:09:04 +0000 (17:09 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 19 Oct 2009 00:20:02 +0000 (17:20 -0700)
commita559ab0fd0bbbb945cb6f3e2dc10f6f73ee751b5
treebcedc134450745fa37a3585579722fa02b6f59e8
parenteee839bf668a63009abfc95004f45dd903377c70
Slab allocator

Introduces a slab allocator, and uses it to back kmalloc allocations
less than 32 pages.  Kmalloc only guarantees 16 byte alignment, so if
you want something better (like page alignment), use get_cont_pages().
13 files changed:
kern/include/kmalloc.h
kern/include/page_alloc.h
kern/include/pmap.h
kern/include/ros/common.h
kern/include/slab.h [new file with mode: 0644]
kern/include/testing.h
kern/src/Makefrag
kern/src/colored_caches.c
kern/src/init.c
kern/src/kmalloc.c
kern/src/page_alloc.c
kern/src/slab.c [new file with mode: 0644]
kern/src/testing.c