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