Extreme memory usage when `synchronized( this )` is used
tcak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon May 11 09:50:43 PDT 2015
On Monday, 11 May 2015 at 15:38:55 UTC, Ali Çehreli wrote:
> On 05/11/2015 03:48 AM, tcak wrote:
>
> > I think `destroy`'s behaviour should be documented much
> better.
>
> Could others tell us the missing pieces please.
>
> Perhaps related to this discussion, the following document says
> "does not initiate a GC cycle or free any GC memory":
>
> http://dlang.org/library/object/destroy.html
>
> Thank you,
> Ali
Setting object's reference to null, and destroy are very
different based on my experience. Because if same things were
happening at the end, that memory increase shouldn't have been
happening. What I meant with documenting it better was this.
More information about the Digitalmars-d-learn
mailing list