http://llvm.org/bugs/show_bug.cgi?id=8442

           Summary: Thread unsafety in DynamicLibrary.cpp
           Product: new-bugs
           Version: 2.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


The OpenedHandles static variable in DynamicLibrary.cpp is not thread safe. It
looks like there are other thread-safety issues here. I've attached a patch
which  protects OpenedHandles with a mutex. Note that I couldn't use
ManagedStatic with the mutex, as that would have introduced a circular library
dependency (between Support and System).

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to