Add a lock to PlatformPOSIX::DoLoadImage
authorFrederic Riss <friss@apple.com>
Fri, 11 May 2018 18:21:11 +0000 (18:21 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 11 May 2018 18:21:11 +0000 (18:21 +0000)
commitd10d3795f737ca8a0f602e8a442728d301e65378
tree48bfd332e4b87f99a6d443d656f3d16b4763bc1a
parent5fb6437012ce6020a86ff4dfdae56306fea8d80a
Add a lock to PlatformPOSIX::DoLoadImage

Summary:
Multiple threads could be calling into DoLoadImage concurrently,
only one should be allowed to create the UtilityFunction.

Reviewers: jingham

Subscribers: emaste, lldb-commits

Differential Revision: https://reviews.llvm.org/D46733

llvm-svn: 332115
lldb/include/lldb/Target/Process.h
lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.h
lldb/source/Target/Process.cpp