[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Garbage Collection
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 27 Aug 2001 09:43:22 -0300
>What if I did this:
>
>[LUA CODE]
>red_door=32
>
>and then run millions of things for about 24 hours. If I dont touch the
>'red_door' var, will it be gc'ed after that long period of time?
No, GC is based on accessiblity not on age.
Essentially, that means that all values that are stored in global variables,
or in fields of tables stored in global variables are kept forever. Values that
are not accessible are collected.
--lhf