summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-07-08 15:30:23 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-07-08 15:30:23 +0000
commit060921dee71500a3096f7ed5b32620b1066f5724 (patch)
tree58f4d2b507cb30770bf93c5128ecde5066eca450 /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp
parent4aa2873fdce520fdc29b68cf29034fe64dc6f0af (diff)
downloadbcm5719-llvm-060921dee71500a3096f7ed5b32620b1066f5724.tar.gz
bcm5719-llvm-060921dee71500a3096f7ed5b32620b1066f5724.zip
[OPENMP]Make __kmpc_push_tripcount thread safe.
Summary: __kmpc_push_tripcount function is not thread safe and may lead to data race when the target regions are executed in parallel threads. The patch makes loopTripCnt counter thread aware and stores the tripcount value per thread in the map. Access to map is guarded by mutex to prevent data race in the map itself. Test is for NVPTX target because it does not work correctly on the host. Seems to me, there is a problem in libomp with target regions in the parallel threads. Reviewers: grokos Subscribers: guansong, jfb, jdoerfert, openmp-commits, kkwli0, caomhin Tags: #openmp Differential Revision: https://reviews.llvm.org/D64080 llvm-svn: 365332
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud