Remove invalid asserts in threads.cpp, DoAppropriateWaitWorker(int, ...)
authorKoundinya Veluri <kouvel@microsoft.com>
Sat, 14 Jan 2017 05:18:34 +0000 (21:18 -0800)
committerKoundinya Veluri <kouvel@microsoft.com>
Sat, 14 Jan 2017 05:21:25 +0000 (21:21 -0800)
commit6901e5d2dadac88b49cbf5bc219f46f341db16d2
tree295faeb76f1c0dc721cd97f56505dc4705ad8ed6
parent1bcabac2180478c562c9a16259eeb6b45621ef59
Remove invalid asserts in threads.cpp, DoAppropriateWaitWorker(int, ...)

These cases are actually possible because Windows APIs are inconsistent in their behavior when invalid handles are concerned. Depending on the invalid handle's value, a multi-wait can error with ERROR_INVALID_HANDLE, and a single-wait on an invalid handle could return WAIT_TIMEOUT.

Commit migrated from https://github.com/dotnet/coreclr/commit/4367c8d5205f233ddf9db2c0d23a330d4b72d05c
src/coreclr/src/vm/threads.cpp