[marshal] Use handles in mono_ftnptr_to_delegate
authorAleksey Kliger <aleksey@xamarin.com>
Thu, 11 May 2017 17:44:45 +0000 (13:44 -0400)
committerAleksey Kliger <aleksey@xamarin.com>
Tue, 23 May 2017 15:30:48 +0000 (11:30 -0400)
commit8b9eaf7a723a1d00b4509708c97d57b4b68b9b34
treeb097935a473c5d81e516dfb2a04346c5847f8d0c
parenta61c283115bfab05a5c6958dc5616821015d4b2d
[marshal] Use handles in mono_ftnptr_to_delegate

* Move most of the logic to mono_ftnptr_to_delegate_handle
* Use handles for
  System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointerInternal
mono/metadata/icall-def.h
mono/metadata/marshal.c
mono/metadata/marshal.h