tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: dlopen()/dlclose() and memory reclamation

On Wed, Nov 03, 2010 at 09:35:26AM +0000, Sad Clouds wrote:
> When application has finished with libA, it calls dlclose(). Assuming
> no other applications are using libA and libB, is memory used by those
> libraries reclaimed, i.e. is it marked free for usage by other
> processes, or does it permanently stay loaded in memory for the
> duration of application?

What do you mean with "memory used by those libraries"? The dynamic
linker will unmap the libraries after calling the destructor functions.
It doesn't itself interacts with malloc in anyway.


Home | Main Index | Thread Index | Old Index