[lld] [PATCH] Add a mutex to MachOLinkingContext to prevent a race-condition.

Nick Kledzik kledzik at apple.com
Tue May 12 13:00:43 PDT 2015


LGTM

-Nick

On May 5, 2015, at 11:47 AM, Lang Hames <lhames at gmail.com> wrote:

> Hi All,
> 
> The attached patch adds a mutex to MachOLinkingContext which is locked when clients call registerDylib. This prevents corruption of the dylib sets when multiple threads try to register dylibs at the same time.
> 
> Cheers,
> Lang.
> <lld-lock-macho-dylib-sets.patch>





More information about the llvm-commits mailing list