Skip to content

qcow2: drivers: fix memory leak in qcow2 on multiple open/close#3

Open
guzu wants to merge 1 commit intoAnthoineB:v3.55.5-qcow2from
guzu:evaragnat/qcow2-coroutine-leak
Open

qcow2: drivers: fix memory leak in qcow2 on multiple open/close#3
guzu wants to merge 1 commit intoAnthoineB:v3.55.5-qcow2from
guzu:evaragnat/qcow2-coroutine-leak

Conversation

@guzu
Copy link

@guzu guzu commented Feb 20, 2026

When doing pause/unpause there was a memory leak related to coroutine stack when coroutine pool are used (CONFIG_COROUTINE_POOL).

Code using QEMU threads can register a callback at thread exit, and QEMU coroutine have local_pool_cleanup() registered for that. We just have to use QEMU threads instead of standard pthreads to free the stack coroutine memory.

When doing pause/unpause there was a memory leak related to coroutine
stack when coroutine pool are used (CONFIG_COROUTINE_POOL).

Code using QEMU threads can register a callback at thread exit, and
QEMU coroutine have local_pool_cleanup() registered for that. We just
have to use QEMU threads instead of standard pthreads to free the
stack coroutine memory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant