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

Do not evict unloaded programs #31465

Merged
merged 2 commits into from
May 4, 2023
Merged

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented May 3, 2023

Problem

Delay visible tombstones could be inferred by the presence of unloaded/loaded programs. Removing the explicit tombstone will simplify the handling of program management instructions.

Summary of Changes

This PR updates program eviction logic to not remove unloaded programs. This will enable the cache to always have either a loaded or unloaded cache entry for an upgraded program. This cache entry will imply that the older/outdated program is expired and should not be accessible after the given slot.

Fixes #

@pgarg66 pgarg66 requested a review from Lichtso May 3, 2023 17:51
@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

Merging #31465 (c0ca43e) into master (9a4618a) will decrease coverage by 0.1%.
The diff coverage is 90.9%.

@@            Coverage Diff            @@
##           master   #31465     +/-   ##
=========================================
- Coverage    81.4%    81.4%   -0.1%     
=========================================
  Files         731      731             
  Lines      208741   208675     -66     
=========================================
- Hits       170020   169963     -57     
+ Misses      38721    38712      -9     

@pgarg66 pgarg66 merged commit 96e170b into solana-labs:master May 4, 2023
@pgarg66 pgarg66 deleted the not-evict-unloaded branch May 4, 2023 14:49
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