[llvm-commits] [llvm] r116426 - /llvm/trunk/include/llvm/PassSupport.h

John McCall rjmccall at apple.com
Thu Oct 14 10:34:45 PDT 2010


On Oct 14, 2010, at 10:30 AM, Owen Anderson wrote:
> On Oct 14, 2010, at 1:25 AM, John McCall wrote:
>> While I agree with Sebastian, I wonder if we care.  Is there any good
>> reason to not just require the user to ensure that pass initialization
>> is thread-safe?  "Don't try to concurrently initialize the standard pass
>> registry" does not seem like an unreasonable constraint.
> 
> The problem is that we're trying to do lazy implicit initialization, hidden in the pass constructors.  It's not unreasonable for users to be instantiating passes on different threads.

Ah, okay.  In that case, we definitely can't portably rely on thread-safe statics.

John.





More information about the llvm-commits mailing list