diff options
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2019-05-15 16:53:45 +0000 |
---|---|---|
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2019-05-15 16:53:45 +0000 |
commit | 6ebb785bb1fda1c1d23dae601941edab1ca5dd79 (patch) | |
tree | 4d73229a41c0e9ac04139705f260cbbb45a77be0 /openmp/runtime/src/kmp_runtime.cpp | |
parent | ad08ea284ff0935acd069a1b9587bfd196e3b42b (diff) | |
download | bcm5719-llvm-6ebb785bb1fda1c1d23dae601941edab1ca5dd79.tar.gz bcm5719-llvm-6ebb785bb1fda1c1d23dae601941edab1ca5dd79.zip |
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
llvm-svn: 360784
Diffstat (limited to 'openmp/runtime/src/kmp_runtime.cpp')
-rw-r--r-- | openmp/runtime/src/kmp_runtime.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/openmp/runtime/src/kmp_runtime.cpp b/openmp/runtime/src/kmp_runtime.cpp index 3b636db7b15..fcf8803f0a1 100644 --- a/openmp/runtime/src/kmp_runtime.cpp +++ b/openmp/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; |