mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 17:00:52 +02:00
For the JIT cores we don't need to keep IR around, it's only necessary for the Interpreter. So once the AOT IR service is done dealing with the IR, check to see if we can delete it. This causes teeworld's title screen memory usage to go from 730MB to 566MB. 77.5% the memory usage there. This is effectively an infinite memory leak if the codespace wasn't ever overwritten or invalidated. So larger memory usage programs would end up having a larger impact.