[Mono-dev] Win64 Patch

Robert Jordan robertj at gmx.net
Thu Mar 15 10:48:40 EDT 2007


Hi Jon,

Jonathan Chambers wrote:
> This patch allows the mono runtime to compile for a Win64 target in VS. It
> does need some minor patches to glib I'll submit to them as well (mainly
> inline assembly for G_BREAKPOINT). It does not link as glib and libgc need
> ported. Also, I did not port the stack overflow handling code from Win32 to
> Win64 yet. I don't have enough knowledge yet to know exactly what needs
> changed.
> 
> Index: mono/mono/mini/exceptions-amd64.c
> ===================================================================
> --- mono/mono/mini/exceptions-amd64.c	(revision 74366)
> +++ mono/mono/mini/exceptions-amd64.c	(working copy)
> @@ -11,7 +11,9 @@
>  #include <glib.h>
>  #include <signal.h>
>  #include <string.h>
> +#ifndef PLATFORM_WIN32
>  #include <sys/ucontext.h>
> +#endif
>  
>  #include <mono/arch/amd64/amd64-codegen.h>
>  #include <mono/metadata/appdomain.h>
> @@ -55,15 +57,19 @@
>  	sctx = g_malloc(sizeof(MonoContext));


sctx isn't free()d at the and of the function.
IIRC, exception-x86.cs contains this buglet as well, which
leads to a leak whenever a NRE occurs.

Robert




More information about the Mono-devel-list mailing list