[Openmp-commits] [PATCH] D27647: Fix arguments of trace output in __kmp_push_stack

Phabricator via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Dec 14 00:39:20 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL289640: Cleanup: debug print fixed and moved inside critical section. (authored by achurbanov).

Changed prior to commit:
  https://reviews.llvm.org/D27647?vs=81125&id=81351#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27647

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


Index: openmp/trunk/runtime/src/kmp_tasking.c
===================================================================
--- openmp/trunk/runtime/src/kmp_tasking.c
+++ openmp/trunk/runtime/src/kmp_tasking.c
@@ -336,12 +336,12 @@
     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;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27647.81351.patch
Type: text/x-patch
Size: 1130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20161214/d36a84f7/attachment.bin>


More information about the Openmp-commits mailing list