Skip to content
Snippets Groups Projects
Commit c19c8aec authored by Avi Kivity's avatar Avi Kivity
Browse files

mempool: workaround for unaligned allocations

An allocation that is larger than half a page, but smaller than a page,
will end up badly aligned.

Work around it by using the large allocators for objects larger than half
a page.  This is wasteful and slow but at least it works.

Later we can improve this by moving the slab header to the end of the page,
so it doesn't interfere with alignment.
parent 8162f64f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment