lua-users home
lua-l archive

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

Xianfu Pan <> wrote:

> Yes, 3-color marking algorithm, with some trick to optimization. lua 5.2
> also implements generation GC experimentally, but lua5.3 abort it.
> I think this article may help.
> 2018-01-26 16:43 GMT+08:00 Александр <>: Hi all. I
> want to learn lua internals. Is there any reference to current
> implementation of Lua garbage collector? Maybe it was taken from some
> book? or does it have own implementation? I suppose that lua uses standard
> 3-color marking algorithm, but I am not sure (and unfortunately I did not
> find descriptive article about such aglrotihm). Thanks for response

Yes, the LuaJIT wiki article on GC is a great resource and helped me
understand how garbage collection worked as well.