Componentizing D's garbage collector

Dmitry Olshansky dmitry.olsh at gmail.com
Mon Jan 13 09:56:01 PST 2014


13-Jan-2014 21:49, "Ola Fosheim Grøstad" 
<ola.fosheim.grostad+dlang at gmail.com>" пишет:
> On Monday, 13 January 2014 at 17:45:26 UTC, Dmitry Olshansky wrote:
>> How would it be expensive? I don't see a need to do anything to "pin"
>> a memory block, at the time of scanning there will be a potential
>> pointer to it (in the stack space of C function or registers).
>
> How do you know that it is a pointer?
>

Precisely. Since C space has no type information you have to 
conservatively assume that everything can be a pointer.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list