[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: question on lua tables and garbage collection
- From: Ana Zgombic <morselle@...>
- Date: Sun, 20 Feb 2011 00:47:31 +0800
On Sat, Feb 19, 2011 at 11:46 PM, Axel Kittenberger <email@example.com> wrote:
> yes and yes
> and Luas GC is mark and sweep.
and where's the part of the code to look in? anybody?
> On Sat, Feb 19, 2011 at 4:20 PM, Ana Zgombic <firstname.lastname@example.org> wrote:
>> Hi list,
>> i have several question on garbage collection and lua's table implementation.
>> 1) i understand that a table hash part is indeed implemented in C as a
>> hash. does this part do a rehash when its buckets are full?
>> 2) if it does do a rehash, is it right to think that pointers to
>> actual data does not change?
>> i'm thinking of how the GC finds the bits to be freed.
>> my apologies if the questions are not clear. i'm just learning. in
>> addition, which parts of the code should i look into to see how all of
>> this is orchestrated?
>> thank you.