aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2022-05-05 09:15:41 -0500
committerJonathan Peyton <jonathan.l.peyton@intel.com>2022-06-22 10:30:35 -0500
commitb7b498657685d7a305987b9140253523e77fd4e1 (patch)
tree5a3863e03b8841ec3ec4f3223ac5b006931c85ea /flang/lib/Frontend/CompilerInvocation.cpp
parent106151100867041f705a0cdf25dfe1f732b28443 (diff)
downloadllvm-b7b498657685d7a305987b9140253523e77fd4e1.zip
llvm-b7b498657685d7a305987b9140253523e77fd4e1.tar.gz
llvm-b7b498657685d7a305987b9140253523e77fd4e1.tar.bz2
[OpenMP][libomp] Hold old __kmp_threads arrays until library shutdown
When many nested teams are formed, __kmp_threads may be reallocated to accommodate new threads. This reallocation causes a data race when another existing team's thread simultaneously references __kmp_threads. This patch keeps the old thread arrays around until library shutdown so these lingering references can complete without issue and access to __kmp_threads remains a simple array reference. Fixes: https://github.com/llvm/llvm-project/issues/54708 Differential Revision: https://reviews.llvm.org/D125013
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions