Thank you (was Lua 5.4 bug with coroutines)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Thank you (was Lua 5.4 bug with coroutines)

Real Time Logic


I just wanted to say tank you in regards to the following:

See the function debug.setcstacklimit. You probably has to set a
larger C stack. (Or wait for 5.4.2; we are reversing back to a
stackless implementation, which uses less C-stack space.)


I was concerned that new versions of Lua could no longer be used in embedded devices. With an RTOS, the thread's stack size is usually set in kilobytes and 20Kb works fine with older versions of Lua.

-W


Reply | Threaded
Open this post in threaded view
|

Re: Thank you (was Lua 5.4 bug with coroutines)

孙世龙 sunshilong
Hi, Wilfred Nilsen

I am porting Lua to an RTOS, too.

>With an RTOS, the thread's stack size is usually set in kilobytes and 20Kb works fine with older versions of Lua.
Order versions? Could you list the versions that you have tested?

>With an RTOS, the thread's stack size is usually set in kilobytes and 20Kb.
The thread's stack size could be manually set. So I don't think it's a
serious problem.

Best regards
Sunshilong

On Tue, Nov 10, 2020 at 9:38 AM Wilfred Nilsen <[hidden email]> wrote:

>
>
> I just wanted to say tank you in regards to the following:
>
> See the function debug.setcstacklimit. You probably has to set a
> larger C stack. (Or wait for 5.4.2; we are reversing back to a
> stackless implementation, which uses less C-stack space.)
>
>
> I was concerned that new versions of Lua could no longer be used in embedded devices. With an RTOS, the thread's stack size is usually set in kilobytes and 20Kb works fine with older versions of Lua.
>
> -W
>
>