Fix sporadic segfaults in tasking tests.

Patch by Terry Wilmarth

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

llvm-svn: 308298
This commit is contained in:
Andrey Churbanov 2017-07-18 11:56:16 +00:00
parent 67c60727ce
commit 71483f2dda
1 changed files with 1 additions and 1 deletions

View File

@ -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