|
pthread nor _beginthreadex() will hardly disqualify a stack size for being too low. It's only later, when running one's program that awkward events would take place. Most likely, C libraries would be the ones taking most stack; Lua stack usage (recursion levels, and C automatic variables) should be pretty dependaple. Remember that the _Lua_ stack is kept in heap, and not affected. So, my solution in Lua Lanes was to pick "suitable" stack sizes for all major OS'es. The script, nor the end user, has no way or need to modify them. Without recompiling, that is. Giving that freedom would in theory be "nice" but I think in practise it really wouldn't help much. Current defaults are about "twice as much as seems to be needed", to have some overhead. Better ideas of course considered. :) -asko Duck kirjoitti 27.6.2007 kello 8:00:
|