Skip to content

Commit 6ebb785

Browse files
committedMay 15, 2019
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
1 parent ad08ea2 commit 6ebb785

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎openmp/runtime/src/kmp_runtime.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6139,8 +6139,6 @@ static void __kmp_internal_end(void) {
61396139
KMP_DEBUG_ASSERT(thread->th.th_reap_state == KMP_SAFE_TO_REAP);
61406140
thread->th.th_next_pool = NULL;
61416141
thread->th.th_in_pool = FALSE;
6142-
thread->th.th_active_in_pool = FALSE;
6143-
KMP_ATOMIC_DEC(&__kmp_thread_pool_active_nth);
61446142
__kmp_reap_thread(thread, 0);
61456143
}
61466144
__kmp_thread_pool_insert_pt = NULL;

0 commit comments

Comments
 (0)
Please sign in to comment.