Componentizing D's garbage collector
Benjamin Thaut
code at benjamin-thaut.de
Tue Jan 14 01:20:19 PST 2014
Am 14.01.2014 09:15, schrieb Jacob Carlborg:
> On 2014-01-13 22:23, Timon Gehr wrote:
>
>> Yes, there is a cost. The requirement to pin arbitrary objects at
>> arbitrary times, without the possibility to move at pinning time,
>> invalidates GC algorithms that depend on being able to move _all_
>> objects within some pool.
>
> Can't these object be pinned somewhere else?
>
Yes, thats the usual approach. But that means that you have to copy them
to a other space before pinning, or allocate them in a space that allows
pinning in the first place.
More information about the Digitalmars-d
mailing list