[Mono-dev] [PATCH] Use trampolines for vtable fixups (Windows) (updated)

Kornél Pál kornelpal at gmail.com
Sun Nov 1 12:27:16 EST 2009


I found out that reference counting in mono_image_close_except_pools was 
broken so I fixed that as well.

Double freeing was possible with mono_close_exe_image and I fixed that 
as well.

I can submit these two separately, but the first one is required by 
mono_vtfixup_trampoline to function correctly.

Kornél

Kornél Pál wrote:
> Please see the attached patch that is a separated and improved version
> of the prevously submitted patch.
> 
> ChangeLog draft:
> mono_image_fixup_vtable is now called only when the image is loaded and
> creates trampolines rather than pointers to wrapper functions.
> 
> A new trampoline type MONO_TRAMPOLINE_VTFIXUP is added that is created
> by mono_image_fixup_vtable, and is replacing the pointer to the
> trampoline with the result mono_marshal_get_vtfixup_ftnptr.
> 
> Please review and if you like it, approve the patch.
> 
> Thanks.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mono_vtfixup_tramp.diff2.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20091101/3e19be37/attachment.txt 


More information about the Mono-devel-list mailing list