mono/mono — pull request #203 by Jester01 (2011-12-15 20:00:13+00:00)
Title: Jester/mmap

Hi folks!

I have noticed that the c# compiler gives a cryptic CS0009 error if mmap of a referenced assembly fails. I have traced it to mono/metadata/image.c. While there is a simple file i/o fallback, it is only used if HAVE_MMAP is false at compilation time. I have created a patch that compiles this support in any case (except windows) and modified the image loader to try it if mmap fails. Also I fixed a small bug in the fallback code, it used explicit free() instead of release_fn().

Cheers,
Csaba