A separate GC idea - multiple D GCs

Walter Bright newshound2 at digitalmars.com
Fri Jan 21 22:43:31 UTC 2022


On 1/21/2022 5:56 AM, Chris Katko wrote:
> So a related question: Has anyone ever thought about "thread-local garbage 
> collection" or some sort of "multiple pool [same process/thread] garbage 
> collection"? The idea here is, each thread [or thread collection] would have its 
> own garbage collector, and, be the only thread that pauses during a collection 
> event.

Yes. The trouble is what happens when a pointer in one pool is cast to a pointer 
in another pool.


More information about the Digitalmars-d mailing list