A question about moving GC

Walter Bright newshound at digitalmars.com
Fri Jun 9 13:35:48 PDT 2006


Bruno Medeiros wrote:
> Whoa, I got a bit confused here. Is any reference that is held in the 
> stack automatically pinned (i.e., the referred data doesn't move) ?

Yes.

> If so, why is that, why wouldn't a moving collector move it?

Because then you'd have to track all the register contents instruction 
by instruction.



More information about the Digitalmars-d-learn mailing list