mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-10 01:00:18 +02:00
Previous we were just using an address hint to emulate MAP_32BIT. Seemingly this behaviour has changed on AArch64 where it now isn't guaranteed to scan up from the hint provided if exact allocation fails. Now we pull in the full 32-bit allocator and add support for MAP_32BIT in it. This limits the allocations there in to the first 2GB which Linux expects. Necessary for Mono's trampolines to work since it requires code to be in the first 2GB on x86-64.