[coop] Add GC safe transitions around blocking OS API calls (mono/mono#14612)
authorRyan Lucia <rylucia@microsoft.com>
Fri, 31 May 2019 18:39:22 +0000 (14:39 -0400)
committerGitHub <noreply@github.com>
Fri, 31 May 2019 18:39:22 +0000 (14:39 -0400)
commit4788cbc7860434f656a2ef83d3ff985369ba78f5
tree2fe697b27a0b2185eed1faaacff04472e21313b6
parentaf6c0aec23ad93ac25a8a6dd4dce11ade4216c67
[coop] Add GC safe transitions around blocking OS API calls (mono/mono#14612)

If this was not possible due to them being called during runtime initialization, a short comment was left noting the specific reason why.

Fixes mono/mono#14377

This includes a couple other random fixes I noticed on the way, most notably replacing SEE_MASK_FLAG_DDEWAIT with SEE_MASK_FLAG_NOASYNC as the former is deprecated.

Commit migrated from https://github.com/mono/mono/commit/5d088cf0de7f3e50e3547dba361af4401e938dd4
src/mono/mono/metadata/coree.c
src/mono/mono/metadata/file-mmap-posix.c
src/mono/mono/metadata/file-mmap-windows.c
src/mono/mono/metadata/w32process-unix.c
src/mono/mono/metadata/w32process-win32.c
src/mono/mono/metadata/w32semaphore-unix.c
src/mono/mono/metadata/w32semaphore-win32.c
src/mono/mono/utils/mono-dl.c
src/mono/mono/utils/mono-mmap.c