[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: About current garbage collector implementation
From:       Paige DePol <lual () serfnet ! org>
Date:       2018-01-26 12:54:52
Message-ID: 5F0DD95F-7B4F-468D-BD14-9158CF84D939 () serfnet ! org
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic