diff options
| author | Rui Ueyama <ruiu@google.com> | 2014-05-20 23:05:09 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2014-05-20 23:05:09 +0000 |
| commit | 9b0a69d6dc741d960d739f4e660a820a868fb2b0 (patch) | |
| tree | 9f42bd04012f9ccabe91572f78640c261785cb28 /clang/lib/CodeGen/CodeGenFunction.cpp | |
| parent | 1b985af0ba97dcc51adfd384611a329c8d86954b (diff) | |
| download | llvm-9b0a69d6dc741d960d739f4e660a820a868fb2b0.zip llvm-9b0a69d6dc741d960d739f4e660a820a868fb2b0.tar.gz llvm-9b0a69d6dc741d960d739f4e660a820a868fb2b0.tar.bz2 | |
[PECOFF] Acquire mutex before accessing shared objects.
addResolvableSymbols() queues input files, and readAllSymbols() reads
from them. In practice it's currently safe because they are called from
a single thread. But it's not guaranteed.
Also, acquiring the same mutex is needed not to see inconsistent memory
contents that is allowed in the C++ memory model.
llvm-svn: 209254
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
