GC and threads

Sean Kelly sean at f4.ca
Sun Jan 28 18:03:54 PST 2007


Saaa wrote:
> Will a garbage collection sweep halt all threads momentarily?

Yes.

> If so, isn't there a way around this? 

An incremental GC doesn't halt threads (some actually do as a last 
resort), but it requires compiler support to work.  In essence, every 
time a pointer is changed with an incremental GC, the GC must be notified.


Sean



More information about the Digitalmars-d mailing list