[io-layer] Don't RC std handles or the current process on every lookup.
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 16 Mar 2017 22:58:11 +0000 (15:58 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 5 Apr 2017 21:18:26 +0000 (14:18 -0700)
commit65ea950e30d96129cc0cf923b37333fbe2426654
tree552ab1f52ee0282a255039e2a0c73e17ce8b4adc
parentcbe527afcefb3b7bf0e3ff2604049147e5cf2a2a
[io-layer] Don't RC std handles or the current process on every lookup.

Caller don't expect those lookups to be RC'd so they don't compensate. This leads to unbound growth of their ref count, which eventually overflows.
mono/metadata/w32file-unix.c
mono/metadata/w32process-unix.c