[Issue 14573] New: Extreme memory usage when `synchronized( object )` is used
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon May 11 03:55:22 PDT 2015
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 at puremagic.com
Reporter: 14crgg+ekargo2d7qijk at 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.
--
More information about the Digitalmars-d-bugs
mailing list