Re: About current garbage collector implementation
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: About current garbage collector implementation
- From: Paige DePol <lual@...>
- Date: 2018年1月26日 06:54:52 -0600
Xianfu Pan <pxfgod@gmail.com> wrote:
> Yes, 3-color marking algorithm, with some trick to optimization. lua 5.2
> also implements generation GC experimentally, but lua5.3 abort it.
>
> http://wiki.luajit.org/New-Garbage-Collector.
>
> I think this article may help.
>
> 2018年01月26日 16:43 GMT+08:00 Александр <cool.ipatovo@gmail.com>: 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.
~Paige