Move lock acquire/release functions in task deque cleanup code
The original locations can be reached without initializing the lock variable (td_deque_lock), so it is potentially unsafe. It is guaranteed that the lock is initialized if the deque (td_deque) is not NULL, and lock functions can be safely called. Patch by Hansang Bae Differential Revision: https://reviews.llvm.org/D36017 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@309875 91177308-0d34-0410-b5e6-96231b3b80d8
Loading
Please sign in to comment