-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Remove executor cache from the codebase #31566
Conversation
Codecov Report
@@ Coverage Diff @@
## master #31566 +/- ##
=========================================
- Coverage 81.3% 81.2% -0.1%
=========================================
Files 734 733 -1
Lines 205128 204760 -368
=========================================
- Hits 166906 166463 -443
- Misses 38222 38297 +75 |
runtime/src/bank.rs
Outdated
@@ -7708,7 +7577,7 @@ impl Bank { | |||
// Clear new account | |||
self.store_account(new_address, &AccountSharedData::default()); | |||
|
|||
self.remove_executor(old_address); | |||
self.unload_program(old_address); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An unloaded entry still means that the new version has been verified against the current feature set, which is not the case here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct. Let me change it to remove the entry instead.
Problem
ExecutorCache
has been replaced withLoadedPrograms
. The obsolete code should be deleted.Summary of Changes
Remove
ExecutorCache
from the codebase.Fixes #