Skip to content
Commit 9b0a69d6 authored by Rui Ueyama's avatar Rui Ueyama
Browse files

[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
parent 1b985af0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment