core.stdc.stdatomic

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Thu Nov 16 04:25:52 UTC 2023


On 16/11/2023 8:53 AM, claptrap wrote:
> C++ and assembler. I used a MPSC "garbage queue" for freeing memory, and 
> there were points in the application where I knew it was safe to empty 
> the queue. So you could maybe see that as "GC like".

If you had known good points to release it, yeah that is a known to be 
good strategy.

I went totally manual without any such external assistance.

So if you want to know the area of the literature that I was reading it 
was anything that did not apply outside help to deallocate.

> But GC or not doesn't answer the main question, what LF algorithm 
> depends on a a sequence of instructions being done immediately after a 
> CAS? How do you ever enforce that on x86?

That's the fun part, you can't enforce it on any ISA.

Signals, interrupts.

If I hadn't been so distracted by the fact that things could work on ldc 
but not on dmd, I would've realized that what I was trying to do 
couldn't work.

There is only one way to describe myself going down that path, a fool ;)


More information about the Digitalmars-d mailing list