ntdll: Don't release address space on 64-bit macOS.

This commit is contained in:
Brendan Shanks 2023-06-19 20:56:43 -07:00 committed by Alexandre Julliard
parent 900dfca389
commit c1958ddc7a

View file

@ -4128,6 +4128,13 @@ static void virtual_release_address_space(void)
char *base = (char *)0x82000000;
char *limit = get_wow_user_space_limit();
#if defined(__APPLE__) && !defined(__i386__)
/* On 64-bit macOS, don't release any address space.
* It needs to be reserved for use by Wow64
*/
return;
#endif
if (limit > (char *)0xfffff000) return; /* 64-bit limit, nothing to do */
if (limit > base)