arena: do not round-up when picking xalloc lists
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 23 Sep 2019 20:20:32 +0000 (16:20 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 8 Oct 2019 21:11:11 +0000 (17:11 -0400)
commit3296159321ec1f211fa3f4c6178c4bd95632ab63
tree6e9c46bc5bb4ee8eac7f89c3db1a98b43708dfbe
parent7af6458111579bd2c8d6382958333edcb24f6634
arena: do not round-up when picking xalloc lists

The list we start at is an optimization.  We could easily start at the
first list.  We skip to the first list that *can* satisfy us.
Previously, due to align and phase acrobatics, we could jump to the next
list beyond the one that could satisfy us, which could lead to an "OOM"
when we actually had the resource.

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