[OMPT] Fix assertion that arises when waiting for proxy tasks on runtime shutdown
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Thu, 10 Sep 2015 21:33:50 +0000 (21:33 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Thu, 10 Sep 2015 21:33:50 +0000 (21:33 +0000)
commit6d247f71c30acc8e9e856227507684d19f7ea058
tree0af7b76956338a4f5188e9904ffad9a75841f4d5
parent34b11fc197fbb4d2a3349431b4984e239159b657
[OMPT] Fix assertion that arises when waiting for proxy tasks on runtime shutdown

This only triggered when built in debug mode with OMPT enabled:
__kmp_wait_template expected the state of the current thread to be either
ompt_state_idle or ompt_state_wait_barrier{,_implicit,_explicit}.

Patch by Jonas Hahnfeld

Differential Revision: http://reviews.llvm.org/D12754

llvm-svn: 247339
openmp/runtime/src/kmp_runtime.c
openmp/runtime/src/kmp_wait_release.h