mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-29 09:15:33 +01:00
af305aa168
This affects enabling and disabling block profiling on the fly. The block profiling pauses the CPU cores and then flushes the JIT's block cache and enables block profile. The issue with this is that when we pause the CPU core, we don't have a way to tell if the JIT recompiler has actually left. So if the secondary thread that is clearing the JIT block cache is too quick, it will clear the cache as a recompiler is still running that block that has been cleared.