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

Remove executor cache from the codebase #31566

Merged
merged 4 commits into from
May 10, 2023

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented May 9, 2023

Problem

ExecutorCache has been replaced with LoadedPrograms. The obsolete code should be deleted.

Summary of Changes

Remove ExecutorCache from the codebase.

Fixes #

@pgarg66 pgarg66 marked this pull request as ready for review May 10, 2023 03:38
@pgarg66 pgarg66 requested a review from Lichtso May 10, 2023 03:38
@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

Merging #31566 (5521825) into master (3fd3e6d) will decrease coverage by 0.1%.
The diff coverage is 55.4%.

@@            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     

@@ -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);
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@pgarg66 pgarg66 requested a review from Lichtso May 10, 2023 12:53
@pgarg66 pgarg66 merged commit ab89e2c into solana-labs:master May 10, 2023
@pgarg66 pgarg66 deleted the delete-executor-cache branch May 10, 2023 14:11
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.

2 participants