aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2019-05-15 16:53:45 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2019-05-15 16:53:45 +0000
commita86b5e4738990f8eeaff4ad1ee05b1af42bc34ea (patch)
tree6b49996237ec173bbfe05c71f1042955b192311d /runtime
parent0a3b7b60f61f1dbfd56aa5fe1bd613388788417c (diff)
Fixed https://bugs.llvm.org/show_bug.cgi?id=41584.
Removed unconditional and unsafe decrement of counter of active threads in pool at shutdown time. Differential Revision: https://reviews.llvm.org/D61944 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@360784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/kmp_runtime.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/runtime/src/kmp_runtime.cpp b/runtime/src/kmp_runtime.cpp
index 3b636db..fcf8803 100644
--- a/runtime/src/kmp_runtime.cpp
+++ b/runtime/src/kmp_runtime.cpp
@@ -6139,8 +6139,6 @@ static void __kmp_internal_end(void) {
KMP_DEBUG_ASSERT(thread->th.th_reap_state == KMP_SAFE_TO_REAP);
thread->th.th_next_pool = NULL;
thread->th.th_in_pool = FALSE;
- thread->th.th_active_in_pool = FALSE;
- KMP_ATOMIC_DEC(&__kmp_thread_pool_active_nth);
__kmp_reap_thread(thread, 0);
}
__kmp_thread_pool_insert_pt = NULL;