labath added a comment.

In D65401#1604870 <https://reviews.llvm.org/D65401#1604870>, @clayborg wrote:

> So previously the SymbolVendor would only make a strong reference to the 
> object file if it didn't match the object file of the module. Now it always 
> makes one. Might be ok since the Module owns the SymbolVendor and thus owns 
> the SymbolFile. We should make sure we don't end up keeping an object file 
> alive when a module goes away due to multiple strong references. I am 
> guessing it will be ok, but good to verify.


I've checked that the ObjectFile goes away when the owning Module is destroyed 
(e.g., in response to SBDebugger::MemoryPressureDetected), but I don't think 
this patch actually changes anything in terms of who-owns-who. The SymbolVendor 
was already storing a pointer to the object file even in case this was the main 
module object file (it stored the pointer "in case the object file is 
different", but the actual storing was unconditional).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65401/new/

https://reviews.llvm.org/D65401



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to