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

mempool: fix memory leak when a pool page become free

We currently leak a pool page, because we cannot unlink the free objects
belonging to the page from the pool's free list.

Fix by having a per-page free list (containing objects only from that page).
The pages are themselves placed on a doubly linked list.  When we identify
an empty page, we can now easily drop it since the local free list only
point within the page.
parent 40b54b12
No related branches found
No related tags found
No related merge requests found
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