[Openmp-commits] [PATCH] D35535: Fix sporadic segfaults in tasking tests

Phabricator via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jul 18 04:56:57 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL308298: Fix sporadic segfaults in tasking tests. (authored by achurbanov).

Changed prior to commit:
  https://reviews.llvm.org/D35535?vs=107039&id=107066#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D35535

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


Index: openmp/trunk/runtime/src/kmp_tasking.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_tasking.cpp
+++ openmp/trunk/runtime/src/kmp_tasking.cpp
@@ -2573,7 +2573,7 @@
             nthreads * sizeof(kmp_thread_data_t));
         // copy old data to new data
         KMP_MEMCPY_S((void *)new_data, nthreads * sizeof(kmp_thread_data_t),
-                     (void *)old_data, maxthreads * sizeof(kmp_taskdata_t *));
+                     (void *)old_data, maxthreads * sizeof(kmp_thread_data_t));
 
 #ifdef BUILD_TIED_TASK_STACK
         // GEH: Figure out if this is the right thing to do


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35535.107066.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170718/e16fb08c/attachment.bin>


More information about the Openmp-commits mailing list