mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-13 02:00:38 +02:00
While this worked great for the singular unit test. I remembered thatour pool allocator returns the minimum working size asked for but will return larger sizes if exact fitment couldn't occur. Because we are dealing with guard pages, we need to return the full buffer size to the "client" so they can tell the frontend where the guard page actually lives. Otherwise the JIT will tell the frontend the guard page is at the end of the requested size, blow past the limit, and fault in a completely different location. With a bit of logging I saw in a multithreaded environment that we were basically always getting a larger requested buffer while Steam was starting up.