commit | 68e7471d49a27311b7852d83298065f1c2576e4f | [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 | 6eff0ea75d2e882a728c7194b958086122b06be6 | |
parent | 6c36b1dce0ac36a8c2b28949a00a9b3aa12446f9 [diff] |
Fix for Fix for https://bugs.llvm.org/show_bug.cgi?id=36705. Differential Revision: https://reviews.llvm.org/D44637 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@327875 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/runtime/src/kmp_runtime.cpp b/runtime/src/kmp_runtime.cpp index a092a0e..0e96190 100644 --- a/runtime/src/kmp_runtime.cpp +++ b/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);