commit | 0afc673b1708437b5d9ff8ce0d50b41ab3b776b8 | [log] [tgz] |
---|---|---|
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | Wed Jun 26 18:11:26 2019 +0000 |
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | Wed Jun 26 18:11:26 2019 +0000 |
tree | 9632b0f0ef712f0388f72aebd1c5d31cfc1cc307 | |
parent | 4df92eda05cd22bfd4a97f4ce821b97cad57f4f7 [diff] |
Fixed memory use-after-free problem. Bug reported in https://bugs.llvm.org/show_bug.cgi?id=42269. Freeing of the contention group (CG) stucture by master thread looks wrong, because workers can leave the CG later on. Intead the freeing is now done by the last thread leaving the CG. Differential Revision: https://reviews.llvm.org/D63599 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@364456 91177308-0d34-0410-b5e6-96231b3b80d8