Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a race condition when pausing the CPU core. #2396

Merged
merged 1 commit into from
May 26, 2015

Commits on May 11, 2015

  1. Fix a race condition when pausing the CPU core.

    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.
    Sonicadvance1 committed May 11, 2015
    Configuration menu
    Copy the full SHA
    af305aa View commit details
    Browse the repository at this point in the history