[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: another try at multithreading
- From: Chris <coderight@...>
- Date: Thu, 19 Jun 2008 08:46:44 -0400
Consider also userdata types. It would be really nice if the garbage
collector(s) collected userdata types from the same thread that
created the type. Or at least some way to defer collection to the
proper thread or something. Some native API's have data types with
this requirement so it would make creating the Lua wrapper
significantly easier and more efficient.
CR
On Thu, Jun 19, 2008 at 8:32 AM, Javier Guerra <javier@guerrag.com> wrote:
> i haven't thought much about GC yet, but i think each thread would get
> its own stack, so there's at least two options there: a dedicated GC
> thread, that should be careful when traversing stacks, or each thread
> could do some GC on its own...
>
> maybe each thread could periodically do the 'mark' step and a
> dedicated one would do the 'sweep'? most of these is new to me. first
> concentrate on the data structures