[llvm-commits] [PATCH] Look up symbols in a specific library with DynamicLibrary

David Blaikie dblaikie at gmail.com
Thu Aug 11 10:02:49 PDT 2011


> And currently permanently-loaded libraries are /never/ unloaded, so this is no worse than what we've been doing.

Ah, OK. It's mostly a problem with leaks and leak detection tools -
without an unload they don't generally do a good job tracking
resources allocated within the dynamic library that are not
subsequently deallocated. But if the current implementation is already
not satisfying this condition then, indeed, no worries for now but
something to keep in mind that it might be worth enabling/driving
towards rather than away from if there's any case where it might tip
the balance of some design decision.

> If we do ever add an unload hook, it would be in the LLVM core, since we're still planning to keep track of all libraries loaded (even by plugins).

Make sense. Thanks for the details,

- David



More information about the llvm-commits mailing list