Add the arena allocator
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 28 Oct 2016 20:22:26 +0000 (16:22 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 29 Nov 2016 16:27:40 +0000 (11:27 -0500)
commit8cc85e9f20c0880773ef9ce32b0e567c2f7918f3
tree6792d5c7067ac35b2cbc47b6826d75356c7ad245
parentaa09290195133b9c3a1a0e51b238c4bbfaaf4354
Add the arena allocator

The arena allocator is based off of the Vmem allocator:

http://www.google.com/search?q=bonwick+vmem

This will be the basis for all memory allocation.  Right now, it does
not have integrated qcaches (slabs).  That will require some work with
the slab allocator.  You can build a jumbo page allocator, using a
helper that xallocs with an alignment, which is pretty cool.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/arena.h [new file with mode: 0644]
kern/src/Kbuild
kern/src/arena.c [new file with mode: 0644]