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

Retain runtime environment config for unloaded programs #31953

Merged
merged 3 commits into from
Jun 3, 2023

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Jun 2, 2023

Problem

This is a preparation for #31945.

When a program is unloaded, it's loader configuration is dropped. The configuration is useful to check if program needs re-verification when it is reloaded. If the configuration (e.g. feature set) has been modified, the program must be re-verified.

Summary of Changes

Retain the configuration as part of Unloaded variant.

Fixes #

@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Merging #31953 (6f5ae9c) into master (37ebb70) will decrease coverage by 0.1%.
The diff coverage is 80.3%.

@@            Coverage Diff            @@
##           master   #31953     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         760      760             
  Lines      207382   207392     +10     
=========================================
- Hits       169904   169901      -3     
- Misses      37478    37491     +13     

@pgarg66 pgarg66 requested a review from Lichtso June 2, 2023 21:47
@pgarg66 pgarg66 marked this pull request as ready for review June 2, 2023 21:48
@pgarg66 pgarg66 requested a review from Lichtso June 2, 2023 22:42
@Lichtso Lichtso added the v1.16 PRs that should be backported to v1.16 label Jun 3, 2023
@Lichtso Lichtso merged commit 1b30de4 into solana-labs:master Jun 3, 2023
4 checks passed
mergify bot pushed a commit that referenced this pull request Jun 3, 2023
* Retain runtime environment config for unloaded programs

(cherry picked from commit 1b30de4)
@pgarg66 pgarg66 deleted the retain-loader-config-unloaded branch June 3, 2023 12:47
Lichtso pushed a commit that referenced this pull request Jun 3, 2023
…ort of #31953) (#31956)

Retain runtime environment config for unloaded programs (#31953)

* Retain runtime environment config for unloaded programs

(cherry picked from commit 1b30de4)

Co-authored-by: Pankaj Garg <pankaj@solana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.16 PRs that should be backported to v1.16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants