From: SeokYeon Hwang Date: Mon, 19 Oct 2015 05:20:25 +0000 (+0900) Subject: coroutine: decrease POOL_BATCH_SIZE for Win32 X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~215 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23710fdea3e9633ba360066cc68747e49ddec2eb;p=sdk%2Femulator%2Fqemu.git coroutine: decrease POOL_BATCH_SIZE for Win32 In 32bit Windows, POOL_BATCH_SIZE == 64 can cause ERROR_NOT_ENOUGH_MEMORY in CreateFiber() in very busy fiber creation. So we decrease the value to 32 for Win32. Change-Id: I09d85087f51d696909f732d1589e0efba4c6d699 Signed-off-by: SeokYeon Hwang --- diff --git a/qemu-coroutine.c b/qemu-coroutine.c index c17a92b107..3c768eb02a 100644 --- a/qemu-coroutine.c +++ b/qemu-coroutine.c @@ -20,7 +20,11 @@ #include "block/coroutine_int.h" enum { +#if defined(_WIN32) && !defined(_WIN64) + POOL_BATCH_SIZE = 32, +#else POOL_BATCH_SIZE = 64, +#endif }; /** Free list to speed up creation */