How the GC distinguishes code from data

%u wfuncion at hotmail.com
Fri Jan 7 16:35:22 PST 2011


> First, you should understand that the GC does not know what data is in a memory
block.

That is exactly why I was wondering how it figures things out. :)


> Data *allocated* as a void[] (which I highly recommend *not* doing) will be
conservatively marked as containing pointers.

Ah, all right, that clears things up! Thank you!!


More information about the Digitalmars-d-learn mailing list