arena: Use qcaches (slabs) in the arena
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 3 Nov 2016 14:46:18 +0000 (10:46 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 29 Nov 2016 16:27:40 +0000 (11:27 -0500)
commit8090054d8d5559e9d497fc54decdc1e8bf150ce6
tree0dfc4a8444458deccb746f4e4da293cbc417590b
parent4a62172bf94adcf5ad7aa98390a47d1550d3463d
arena: Use qcaches (slabs) in the arena

Until we get reclaim working, once memory gets added to an arena's
qcache, it'll never be returned to the arena.  I'm not overly worried
about fragmentation, since we know the size of memory in the qcache is a
regularly-desired size.  (e.g. PGSIZE).

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/arena.h
kern/include/slab.h
kern/src/arena.c
kern/src/slab.c