[Lldb-commits] [PATCH] D44321: Support demangling for D symbols via dlopen

Johan Engelen via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 14 16:24:26 PDT 2018


johanengelen added a comment.

In https://reviews.llvm.org/D44321#1038160, @timotheecour wrote:

> > How do you de-initialize druntime? (without de-init, there is a big mem leak)
>
> There is no memory leak because `d_initialize` once (using c++11 static initialization pattern) and is intended to last for duration of application; so druntime will be initialized only once, upon 1st use.


When druntime is initialized, a number of resources are allocated (e.g. memory and mutex). Yes you initialize druntime once, I can see that. You don't deinitialize druntime at all: that's the resource leak.


https://reviews.llvm.org/D44321





More information about the lldb-commits mailing list