JDevlieghere added a comment.

In D73119#1833232 <https://reviews.llvm.org/D73119#1833232>, @labath wrote:

> As for `AppleObjCRuntime`, I'm not insisting on changing that, though I am 
> wondering if that won't get it your way when autogenerating the initalizers. 
> I'm not fully sure what are your plans for that. If you're going to generate 
> the `#include` lines then it looks like this discrepancy will matter. If 
> you're going the "extern" route, then generating `#include` is not needed and 
> you headers can be called anything. With the global constructor approach (my 
> favourite :P) we wouldn't need to autogenerate anything at all...


As much as I personally like the idea of the global constructors, I don't see 
how it could work. There's no guarantee in initialization order, so you might 
end up initializing some of the plugins before the plugin manager itself is 
initialized. Although definitely a bug, it has come up in the past that the 
initialization order amongst the plugins matters as well. Finally, it doesn't 
offer a solution to terminating them again. Maybe you've already thought about 
all this?


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

https://reviews.llvm.org/D73119



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

Reply via email to