forked from OSchip/llvm-project
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:
parent
67c60727ce
commit
71483f2dda
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue