[Mono-dev] [PATCH] Don't depend on madvise

Andreas Färber andreas.faerber at web.de
Mon Nov 23 16:21:46 EST 2009


Thanks, applied in r146769.

Andreas

Am 22.11.2009 um 22:03 schrieb Miguel de Icaza:

> This looks good to me, please apply if you can contribute under MIT/ 
> X11
> terms.
>
>> Hello,
>>
>> Mono appears to check for presence of the madvise function but uses  
>> it
>> unconditionally in mono-mmap.c.
>>
>> If madvise was not detected, the attached patch assumes POSIX-
>> compliant posix_madvise to be present instead.
>> Note that posix_madvise does not seem to have an equivalent to
>> MADV_FREE.
>> http://www.opengroup.org/onlinepubs/000095399/functions/posix_madvise.html
>>
>> This patch has been in my queue for some months - it's necessary for
>> Haiku and didn't seem to break the Unices I tested at the time (OSX,
>> Solaris). Please review.
>>
>> Regards,
>>
>> Andreas
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list