mirror of
https://github.com/mii443/qemu.git
synced 2025-12-09 22:18:23 +00:00
coroutine: add a macro for the coroutine stack size
Signed-off-by: Peter Lieven <pl@kamp.de> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
@@ -71,7 +71,7 @@ static void CALLBACK coroutine_trampoline(void *co_)
|
||||
|
||||
Coroutine *qemu_coroutine_new(void)
|
||||
{
|
||||
const size_t stack_size = 1 << 20;
|
||||
const size_t stack_size = COROUTINE_STACK_SIZE;
|
||||
CoroutineWin32 *co;
|
||||
|
||||
co = g_malloc0(sizeof(*co));
|
||||
|
||||
Reference in New Issue
Block a user