More On Solaris ADDRESS_SPACE_LIMIT

Robert Lunnon bob at yarrabee.net.au
Sun Jan 5 06:45:27 CST 2003


In dlls/ntdlls/virtual.c around line 1033 in NtAllocateVirtualMemory:

NTSTATUS res=anon_mmap_aligned( &base, size,VIRTUAL_GetUnixProt( vprot ), 0 );
            if (res) return res;

Why is mmap used here rather than just a malloc/calloc to the OS ? If I can 
convert this call to a calloc then the ADDRESS_SPACE_LIMIT test will pass on 
Solaris.


Can someone give me some insight here ?


Bob







More information about the wine-devel mailing list