commit | 3336aa0d07742f12e7074612da550575874701e8 | [log] [tgz] |
---|---|---|
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | Mon Mar 19 18:05:15 2018 +0000 |
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | Mon Mar 19 18:05:15 2018 +0000 |
tree | 8a21384fa4b006e3a7fb5ef9702a2287428ba615 | |
parent | 836cfb3a4c3a218ee9a922f87853ab374f119697 [diff] [blame] |
Fix for Fix for https://bugs.llvm.org/show_bug.cgi?id=36705. Differential Revision: https://reviews.llvm.org/D44637 llvm-svn: 327875
diff --git a/openmp/runtime/src/kmp_runtime.cpp b/openmp/runtime/src/kmp_runtime.cpp index a092a0e..0e96190 100644 --- a/openmp/runtime/src/kmp_runtime.cpp +++ b/openmp/runtime/src/kmp_runtime.cpp
@@ -5476,6 +5476,7 @@ balign[b].bb.leaf_kids = 0; } this_th->th.th_task_state = 0; + this_th->th.th_reap_state = KMP_SAFE_TO_REAP; /* put thread back on the free pool */ TCW_PTR(this_th->th.th_team, NULL);