lua-users home
lua-l archive

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


2008/10/24 Javier Guerra <javier@guerrag.com>:
> On Fri, Oct 24, 2008 at 9:28 AM, Max van Rooij (van Rooij Electronics
> Design & Software Engineering) <mvrooij@vanrooij-edse.nl> wrote:
>> I have a hunch that Jerome is on the right track, by stating that each
>> new thread gets a copy of the cel table which gets marked for GC after
>> threads' end. If this is the case, then how to prevent it?
>
> as you already did: forcing a GC after terminating a thread.
>
> even better would be to reuse it, of course.  for that, don't let it
> finish, but wrap into a loop that yields after the task is done.
>
> the drawback, of course, is a lot less isolation between tasks

The script creating the array is already not the same as the one run repeatedly.

Max: can you send us the C code loadin both scripts and running them ?