[Openmp-commits] [openmp] r308298 - Fix sporadic segfaults in tasking tests.
Andrey Churbanov via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jul 18 04:56:16 PDT 2017
Author: achurbanov
Date: Tue Jul 18 04:56:16 2017
New Revision: 308298
URL: http://llvm.org/viewvc/llvm-project?rev=308298&view=rev
Log:
Fix sporadic segfaults in tasking tests.
Patch by Terry Wilmarth
Differential Revision: https://reviews.llvm.org/D35535
Modified:
openmp/trunk/runtime/src/kmp_tasking.cpp
Modified: openmp/trunk/runtime/src/kmp_tasking.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_tasking.cpp?rev=308298&r1=308297&r2=308298&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_tasking.cpp (original)
+++ openmp/trunk/runtime/src/kmp_tasking.cpp Tue Jul 18 04:56:16 2017
@@ -2573,7 +2573,7 @@ static int __kmp_realloc_task_threads_da
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
More information about the Openmp-commits
mailing list