On 9/20/2011 4:58 PM, Timon Gehr wrote:
On 09/21/2011 01:37 AM, Walter Bright wrote:
1. A moving garbage collector becomes practical.


And this is a requirement for highly efficient GC. How does it cope with
pointers that point to memory not allocated on the GC heap though?

No problem. Only GC references get moved and hence updated.

Would the
overhead of tracking references just be invasive on parts of the code that uses
manual memory management if a program uses a moving GC?

You'll still have to 'register' those blocks of memory with the GC if they hold any pointers into it.

Reply via email to