[Openmp-commits] [openmp] r289640 - Cleanup: debug print fixed and moved inside critical section.

Andrey Churbanov via Openmp-commits openmp-commits at lists.llvm.org
Wed Dec 14 00:29:00 PST 2016


Author: achurbanov
Date: Wed Dec 14 02:29:00 2016
New Revision: 289640

URL: http://llvm.org/viewvc/llvm-project?rev=289640&view=rev
Log:
Cleanup: debug print fixed and moved inside critical section.

Patch by Victor Campos.

Differential Revision: https://reviews.llvm.org/D27647

Modified:
    openmp/trunk/runtime/src/kmp_tasking.c

Modified: openmp/trunk/runtime/src/kmp_tasking.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_tasking.c?rev=289640&r1=289639&r2=289640&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_tasking.c (original)
+++ openmp/trunk/runtime/src/kmp_tasking.c Wed Dec 14 02:29:00 2016
@@ -336,12 +336,12 @@ __kmp_push_task(kmp_int32 gtid, kmp_task
     thread_data -> td.td_deque_tail = ( thread_data -> td.td_deque_tail + 1 ) & TASK_DEQUE_MASK(thread_data->td);
     TCW_4(thread_data -> td.td_deque_ntasks, TCR_4(thread_data -> td.td_deque_ntasks) + 1);             // Adjust task count
 
-    __kmp_release_bootstrap_lock( & thread_data -> td.td_deque_lock );
-
     KA_TRACE(20, ("__kmp_push_task: T#%d returning TASK_SUCCESSFULLY_PUSHED: "
-                  "task=%p ntasks=%d head=%u tail=%u\n",
-                  gtid, taskdata, thread_data->td.td_deque_ntasks,
-                  thread_data->td.td_deque_tail, thread_data->td.td_deque_head) );
+          "task=%p ntasks=%d head=%u tail=%u\n",
+          gtid, taskdata, thread_data->td.td_deque_ntasks,
+          thread_data->td.td_deque_head, thread_data->td.td_deque_tail) );
+
+    __kmp_release_bootstrap_lock( & thread_data->td.td_deque_lock );
 
     return TASK_SUCCESSFULLY_PUSHED;
 }




More information about the Openmp-commits mailing list