digitalmars.D.bugs - [Issue 14573] New: Extreme memory usage when `synchronized( object
- via Digitalmars-d-bugs (26/26) May 11 2015 https://issues.dlang.org/show_bug.cgi?id=14573
https://issues.dlang.org/show_bug.cgi?id=14573 Issue ID: 14573 Summary: Extreme memory usage when `synchronized( object )` is used 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 continuously. 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 stable. --
May 11 2015