lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mark Meijer wrote:
> I've had some problems with LuaJIT and large amounts of coroutines
> (all written in pure lua, no extra C code in there). Out of memory, as
> some may have guessed. I did some searching and gathered that the
> default stack size in Win32 might be the culprit. I tried increasing
> it to 16 meg using the compiler option /F16777216 (/F and 16 * 1024 *
> 1024) just to see if it would help, but it made no difference at all.
> Am I overlooking something?

This is a common Windows problem. You need to *decrease* the
thread stack space or you run out of virtual memory.

See: http://luajit.org/coco_portability.html
(scroll down to "Note for Windows" and follow the link to MSDN)

--Mike