tech-userlevel archive

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

dlopen()/dlclose() and memory reclamation



Hi, consider the following situation:

App->libA->libB

Application uses dlopen() to load libA, which depends on libB, so libB
is automatically loaded.

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?


Home | Main Index | Thread Index | Old Index