[Openmp-commits] [openmp] r360784 - Fixed https://bugs.llvm.org/show_bug.cgi?id=41584.
Andrey Churbanov via Openmp-commits
openmp-commits at lists.llvm.org
Wed May 15 09:53:45 PDT 2019
Author: achurbanov
Date: Wed May 15 09:53:45 2019
New Revision: 360784
URL: http://llvm.org/viewvc/llvm-project?rev=360784&view=rev
Log:
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
Modified:
openmp/trunk/runtime/src/kmp_runtime.cpp
Modified: openmp/trunk/runtime/src/kmp_runtime.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_runtime.cpp?rev=360784&r1=360783&r2=360784&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_runtime.cpp (original)
+++ openmp/trunk/runtime/src/kmp_runtime.cpp Wed May 15 09:53:45 2019
@@ -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;
More information about the Openmp-commits
mailing list