@pinned classes

bearophile bearophileHUGS at lycos.com
Thu Apr 1 11:09:24 PDT 2010


div0:
> The trouble with a moving garbage collector is that you have to be able
> to accurately scan the stacks of all threads. This is difficult to do
> with a language that can arbitrarily call into functions provided by
> different languages for which the compiler won't and can't have stack
> layout info.

All pointers are to pinned memory. You can't give or receive an "unpinned reference" to an external function written in other languages. Only the D GC manages references to unpinned classes. So, can you explain me what problems you see?

Bye,
bearophile



More information about the Digitalmars-d mailing list