Garbage Collection for Systems Programmers
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sun Apr 7 06:16:13 UTC 2024
On 07/04/2024 7:09 AM, Sebastian Nibisz wrote:
> On Saturday, 6 April 2024 at 16:49:44 UTC, Richard (Rikki) Andrew
> Cattermole wrote:
>> Modern GC's tend to need write barriers to make them work.
>
> Write barrier can be as cheap as a single atomic write.
*can be*
It would need to call into the GC as the strategy until we know what
implementations need.
It must also be noted that dmd-be doesn't support atomics as intrinsics
and Walter has been very against adding it, so it would still be a
function call.
More information about the Digitalmars-d
mailing list