diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-05-10 17:19:04 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-05-10 17:19:04 +0000 |
commit | 29d65744c9290f901cc86a096be942a97a649b61 (patch) | |
tree | 09084e672f8e2950a245702058fe2a414cc1f384 /llvm/lib/Bitcode/Reader/BitstreamReader.cpp | |
parent | 72a196a159b28f26f84d9afec8b2baac11d367bc (diff) | |
download | llvm-29d65744c9290f901cc86a096be942a97a649b61.zip llvm-29d65744c9290f901cc86a096be942a97a649b61.tar.gz llvm-29d65744c9290f901cc86a096be942a97a649b61.tar.bz2 |
Adding support for setting thread stop state when a process stops.
This re-submission of this patch fixes a problem where the code sometimes caused a deadlock. The Process::SetPrivateState method was locking the Process::m_private_state variable and then later calling ThreadList::DidStop, which locks the ThreadList mutex. Other methods in ThreadList which were being called from other threads lock the ThreadList mutex and then call Process::GetPrivateState which locks the Process::m_private_state mutex. To avoid deadlocks, Process::SetPrivateState now locks the ThreadList mutex before locking the Process::m_private_state mutex.
llvm-svn: 181609
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitstreamReader.cpp')
0 files changed, 0 insertions, 0 deletions