lua-users home
lua-l archive

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


I think the only dynamic allocations Lua makes are those for Lua objects, which end up being stored somewhere in Lua state. So, in general, there is nothing that would be sitting on C stack in need for deallocation or a cleanup.

Alex.

>-----Original Message-----
>From: marcus.cf [mailto:marcus.cf@bol.com.br]
>Sent: Friday, December 19, 2003 11:05 AM
>To: lua@bazar2.conectiva.com.br
>Subject: RE: error, setjmp and exceptions
>
>
>I wonder how Lua manages dynamic allocation and longjmp 
>internally...
>I've found out that Lua uses a neat jmb_buf linked list 
>to handle multiple jump destinations, but I don't know 
>what it does to avoid leaking memory.
>
> 
>_______________________________________________________________
>___________
>Acabe com aquelas janelinhas que pulam na sua tela.
>AntiPop-up UOL - É grátis!
>http://antipopup.uol.com.br/
>
>
>
>