The problem is not the 64KB, its the 1MB, which is the default
stack_size for Windows. If the actual stack at creation time of the vm
is lower than (1MB -64kb) than result for c_stack_max is negative.

Ok, got it, so a better fix would be to know the actual stack size for the current thread on Windows, right ? Since we don't want to reach 1MB stack if the stack is only 320KB as you 0x50000 example shows...

Any API function for that ?

Nicolas

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to