[marshal] Wrap byref reference args to icalls in coop handles correctly.
authorAleksey Kliger <aleksey@xamarin.com>
Wed, 31 May 2017 14:30:09 +0000 (10:30 -0400)
committerAleksey Kliger <aleksey@xamarin.com>
Mon, 5 Jun 2017 19:01:46 +0000 (15:01 -0400)
commit68bff52cae51a3abce7a2e42b42a6affa1070efe
treee5bf06b06ab0dae806893d3d2c1f6dcff6e3d2c4
parent8873c444008009fd9d588091cfaad1014858df1c
[marshal] Wrap byref reference args to icalls in coop handles correctly.

Previously we only had "out" reference args working - they get a handle that's
initialized to NULL on entry and then writes back to the out arg on icall
return.

For "ref" reference args, do the same thing but initialize to the initial
argument value.
mono/metadata/marshal.c