Re: Are heap objects never moved by the garbage collector?

2013-06-01 Thread sclytrack
On Friday, 31 May 2013 at 16:31:39 UTC, Carl Sturtivant wrote: The D Programming Language (TDPL) p.178 asserts the following. The objects themselves stay put, that is their locations in memory never change after creation. I take this to mean that the D garbage collector doesn't move live

Re: Are heap objects never moved by the garbage collector?

2013-06-01 Thread Diggory
On Saturday, 1 June 2013 at 08:11:05 UTC, sclytrack wrote: On Friday, 31 May 2013 at 16:31:39 UTC, Carl Sturtivant wrote: The D Programming Language (TDPL) p.178 asserts the following. The objects themselves stay put, that is their locations in memory never change after creation. I take

Are heap objects never moved by the garbage collector?

2013-05-31 Thread Carl Sturtivant
The D Programming Language (TDPL) p.178 asserts the following. The objects themselves stay put, that is their locations in memory never change after creation. I take this to mean that the D garbage collector doesn't move live objects and adjust all references to them the way that some

Re: Are heap objects never moved by the garbage collector?

2013-05-31 Thread Simen Kjaeraas
On 2013-05-31, 18:31, Carl Sturtivant wrote: The D Programming Language (TDPL) p.178 asserts the following. The objects themselves stay put, that is their locations in memory never change after creation. I take this to mean that the D garbage collector doesn't move live objects and

Re: Are heap objects never moved by the garbage collector?

2013-05-31 Thread bearophile
Carl Sturtivant: Does D guarantee this? In theory D is designed to allow a moving garbage collector. The current GC doesn't move objects. Bye, bearophile

Re: Are heap objects never moved by the garbage collector?

2013-05-31 Thread Diggory
On Friday, 31 May 2013 at 17:14:52 UTC, Jonathan M Davis wrote: On Friday, May 31, 2013 18:31:38 Carl Sturtivant wrote: The D Programming Language (TDPL) p.178 asserts the following. The objects themselves stay put, that is their locations in memory never change after creation. I take this