[Issue 14573] [REG2.067] Extreme memory usage when `synchronized( object )` is used
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu May 14 10:50:10 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14573
--- Comment #5 from safety0ff.bugz <safety0ff.bugz at gmail.com> ---
(In reply to Martin Nowak from comment #4)
>
> I'm so tired of this reverting business, let's just fix the bug.
> We have 2 options
>
> - introduce a finalizeMonitor flag that tells the GC to only free the monitor
> - try to add a quickpath in rt_finalize2 to skip destruction, but keep the
> FINALIZE flag, even for classes without a dtor
I think introducing another flag will be overhead for little gain (flags aren't
cheap currently.)
The first idea that came to mind was to add FINALIZE in _d_monitor_create, not
sure if it'll work.
I don't have the time for a fix that will require me to check the monitor
source code, which is why I talked about reverting + comment.
--
More information about the Digitalmars-d-bugs
mailing list