[MLton] Win64 patches again

Matthew Fluet fluet at tti-c.org
Thu Feb 14 07:23:26 PST 2008


On Mon, 4 Feb 2008, Wesley W. Terpstra wrote:
> mingw-updates.patch:
>
> My previous email explained why the memory management routines for MinGW were 
> broken; see it for an explanation of how this caused the out-of-memory bugs 
> and random crashes when a fixed heap location is used.
>
> Some MinGW builds have a symbol gettimeofday, this patch moves our 
> implementation out of the way and continues to use it rather than the symbol 
> exported in an extended mingw library. Ours works for our needs.
>
> I re-implemented getrusage. As this now works, gc-summary also works and was 
> enabled.
>
> A couple points in this file assumed sizeof(long) >= sizeof(void*). These 
> were corrected.
>
> I added more platforms to the uname code now that MinGW supports them.
>
> Several headers in MinGW have been changed since the code was last touched. I 
> adjusted timespec and the signals to deal with the least common denominator.
>
> I also modified the display maps method to work with 64 bit pointers.

Committed (and untested):
   http://mlton.org/cgi-bin/viewsvn.cgi?rev=6406&view=rev

One thing I noticed was that the uses of __MINGW32_{MINOR,MAJOR}_VERSION 
were commented out in the implementation of uname (mingw.c).




More information about the MLton mailing list