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

Reset queued methods on cache flush #20628

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JamesKingdon
Copy link
Contributor

When running under FSD, class redefinition results in all methods being unloaded from the class cache and the compilation queues are emptied. This is partly accomplished by jitResetAllMethods in decomp.cpp, however it misses those methods that have been queued but not yet compiled. The result is that after class redef a subset of methods will never be recompiled, with a potentially significant impact on performance. This change ensures that queued methods also have their status reset.

When running under FSD, class redefinition results in all methods being
unloaded from the class cache and the compilation queues are emptied.
This is partly accomplished by jitResetAllMethods in decomp.cpp, however
it misses those methods that have been queued but not yet compiled. The
result is that after class redef a subset of methods will never be
recompiled, with a potentially significant impact on performance. This
change ensures that queued methods also have their status reset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant