summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2017-07-18 11:56:16 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2017-07-18 11:56:16 +0000
commit71483f2ddaa9eb3d963a6568388e9b63fe73296a (patch)
treef4a10a5f54682402789837f0d7772f8157f61c75 /openmp/runtime/src
parent67c60727ce795e24f194b397c33e376a94376ce2 (diff)
downloadbcm5719-llvm-71483f2ddaa9eb3d963a6568388e9b63fe73296a.tar.gz
bcm5719-llvm-71483f2ddaa9eb3d963a6568388e9b63fe73296a.zip
Fix sporadic segfaults in tasking tests.
Patch by Terry Wilmarth Differential Revision: https://reviews.llvm.org/D35535 llvm-svn: 308298
Diffstat (limited to 'openmp/runtime/src')
-rw-r--r--openmp/runtime/src/kmp_tasking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/kmp_tasking.cpp b/openmp/runtime/src/kmp_tasking.cpp
index fa3ea39d6d7..8f1eb02499c 100644
--- a/openmp/runtime/src/kmp_tasking.cpp
+++ b/openmp/runtime/src/kmp_tasking.cpp
@@ -2573,7 +2573,7 @@ static int __kmp_realloc_task_threads_data(kmp_info_t *thread,
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
OpenPOWER on IntegriCloud