Skip to content

Commit 97433b9

Browse files
committed
Merge pull request dotnet#2098 from janvorli/fix-threadpool-shiftwaitarray
Fix issue with threadpool and wait for multiple objects on Linux
2 parents 509ac7b + 4a8bdea commit 97433b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vm/win32threadpool.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1191,10 +1191,10 @@ class ThreadpoolMgr
11911191
ULONG count)
11921192
{
11931193
LIMITED_METHOD_CONTRACT;
1194-
memcpy(&threadCB->waitHandle[DestIndex],
1194+
memmove(&threadCB->waitHandle[DestIndex],
11951195
&threadCB->waitHandle[SrcIndex],
11961196
count * sizeof(HANDLE));
1197-
memcpy(&threadCB->waitPointer[DestIndex],
1197+
memmove(&threadCB->waitPointer[DestIndex],
11981198
&threadCB->waitPointer[SrcIndex],
11991199
count * sizeof(LIST_ENTRY));
12001200
}

0 commit comments

Comments
 (0)