www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14573] New: Extreme memory usage when `synchronized( object


          Issue ID: 14573
           Summary: Extreme memory usage when `synchronized( object )` is
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: 14crgg+ekargo2d7qijk sharklasers.com

Created attachment 1521
  --> https://issues.dlang.org/attachment.cgi?id=1521&action=edit
Example code

On DMD 2.067.1, when `synchronized` keyword is used with a parameter that is
`this` or just another shared object, memory consumption increases

I am informed that on DMD 2.066.0, this is not the case, and it doesn't
increase memory consumption.

As seen in the example file, if object is destroyed by using `destroy`
function, even the `synchronized` is used with an object, memory usage is still

May 11 2015