GC and outside references to D-code
kirklin.mcdonald at gmail.com
Thu Jul 5 12:22:07 PDT 2007
> 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)”
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.
Pyd: Connecting D and Python
More information about the Digitalmars-d-learn