More radical ideas about gc and reference counting

via Digitalmars-d digitalmars-d at puremagic.com
Tue May 13 12:17:12 PDT 2014


On Tuesday, 13 May 2014 at 17:37:05 UTC, Steven Schveighoffer 
wrote:
> On Tue, 13 May 2014 13:36:17 -0400, Daniel Murphy 
> <yebbliesnospam at gmail.com> wrote:
>
>> "Steven Schveighoffer"  wrote in message 
>> news:op.xfs6jhp3eav7ka at stevens-macbook-pro-2.local...
>>
>>> If a thread is doing only reads, or is  only touching 
>>> non-Scanned memory, it continues.
>>
>> How long do threads usually go without touching the stack?
>
> The stack would have to be COW.

When you fork a process, all of its pages are COW. What you 
propose is much more complicated. You would either first need to 
fork(), then somehow remap certain pages as shared. The remapping 
would have to happen in the parent process. I don't know whether 
there are even interfaces to do this.


More information about the Digitalmars-d mailing list