GC and outside references to D-code
Kirk McDonald
kirklin.mcdonald at gmail.com
Thu Jul 5 12:22:07 PDT 2007
teo wrote:
> Hi *, I'm concerned about the garbage collector moving an instance of an object to another location.
>
> From D Specification (page 171):
> “... compacting the remaining used memory by copying the allocated objects (called a
> copying collector)”
>
Page 171?
However, the current GC implementation is not a copying collector. If it
ever becomes one, you should expect an API for "pinning" allocated
memory (so that it won't be moved) to be added.
--
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd: Connecting D and Python
http://pyd.dsource.org
More information about the Digitalmars-d-learn
mailing list