[w32handle] Replace mono_w32handle_{ref,unref} by mono_w32handle_{duplicate, close...
authorLudovic Henry <ludovic@xamarin.com>
Wed, 28 Jun 2017 22:42:35 +0000 (18:42 -0400)
committerGitHub <noreply@github.com>
Wed, 28 Jun 2017 22:42:35 +0000 (18:42 -0400)
commit6d88df8d824a0813093ec0e7ef586cd62920466a
tree1c058d70e5abd7463fdd0e863c5f4275de55d6e7
parent6ca11b76d69c197426d6e10aa23b76fc450bea4f
[w32handle] Replace mono_w32handle_{ref,unref} by mono_w32handle_{duplicate, close} (#5106)

* [w32handle] Fix handle dumped ref

* [w32handle] Replace exposing mono_w32handle_{ref,unref} by mono_w32handle_{duplicate,close}, it is closer to what the win32 API exposes.

* [w32handle] Remove unrefing of handles on shutdown

If one of the handle is a file handle for example, then w32file has already be cleaned up, so we cannot guarantee that the handle we are going to close is not going to call into w32file code.
mono/metadata/w32file-unix.c
mono/metadata/w32file.c
mono/metadata/w32handle-namespace.c
mono/metadata/w32handle.c
mono/metadata/w32handle.h
mono/metadata/w32mutex-unix.c
mono/metadata/w32process-unix.c