Shared keyword and the GC?
Alex Rønne Petersen
alex at lycus.org
Thu Oct 18 23:49:29 PDT 2012
On 17-10-2012 16:26, deadalnix wrote:
> Why not definitively adopt the following (and already proposed) memory
> scheme (some practice are now considered valid when this scheme is not
> respected) :
>
> Thread local head (one by thread) -> shared heap -> immutable heap
>
> This model have multiple benefices :
> - TL heap only can be processed by only interacting with one thread.
> - immutable head can be collected 100% concurently if we allow some
> floating garbage.
> - shared heap is the only problem, but as its size stay small, the
> problem stay small.
Can you elaborate? I'm not sure I understand.
--
Alex Rønne Petersen
alex at lycus.org
http://lycus.org
More information about the Digitalmars-d
mailing list