Commit 5321a365 authored by Jonathan Peyton's avatar Jonathan Peyton
Browse files

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
parent ec81ddf6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment