[Openmp-commits] [PATCH] D44637: Fix for https://bugs.llvm.org/show_bug.cgi?id=36705
Andrey Churbanov via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Mar 19 10:32:26 PDT 2018
AndreyChurbanov created this revision.
AndreyChurbanov added reviewers: tlwilmar, hbae, jlpeyton.
Herald added a subscriber: openmp-commits.
Debug build of the OpenMP RTL fails with assertion because of wrong th_reap_state flag during library shutdown.
The fix is to mark a thread SAFE_TO_REAP when it is put into the pool of free threads.
@@ -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 */
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 393 bytes
Desc: not available
More information about the Openmp-commits