OSDN Git Service

[ORC] Fix a data race in the lookup function.
authorLang Hames <lhames@gmail.com>
Wed, 14 Mar 2018 06:25:08 +0000 (06:25 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 14 Mar 2018 06:25:08 +0000 (06:25 +0000)
commit58ecc853fca09fbcf03bca15ceeca47b9c63c12d
treea37b4dc464f725e1abd37e33ba9e34e5f4f19ad4
parentdda1921ef42848088c4b9cfcd054ca17af82228a
[ORC] Fix a data race in the lookup function.

The Error locals need to be protected by a mutex. (This could be fixed by
having the promises / futures contain Expected and Error values, but
MSVC's future implementation does not support this yet).

Hopefully this will fix some of the errors seen on the builders due to
r327474.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327477 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/Orc/Core.cpp