[Lldb-commits] [lldb] [lldb] Use weak pointers instead of shared pointers in DynamicLoader (PR #156446)
Andrew Savonichev via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 2 04:33:52 PDT 2025
asavonic wrote:
@jimingham, @JDevlieghere, thanks to your suggestions in #147289, I was able to use existing LLDB API to completely release some modules from the cache, but keep other modules intact. However, this approach did not work completely, because `DynamicLoaderWindowsDYLD` kept modules from being released. The patch is supposed to address this problem. I think it is a corner case, because normally modules should be released when they are unloaded. In any case, I think using weak pointers here makes sense.
https://github.com/llvm/llvm-project/pull/156446
More information about the lldb-commits
mailing list