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 obsolete code for lazily loading programs #31395

Merged
merged 7 commits into from
May 2, 2023

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Apr 28, 2023

Problem

bpf_loader still has code to lazily load programs, but its obsolete now. The bank loads all the programs in a transaction batch before the loader is called. The obsolete code should be removed.

Summary of Changes

Removed the obsolete code, and updated the tests.

Fixes #

@pgarg66 pgarg66 force-pushed the loader-changes branch 2 times, most recently from d6928e3 to 4a134f4 Compare April 28, 2023 21:03
@pgarg66 pgarg66 marked this pull request as ready for review April 28, 2023 21:04
@pgarg66 pgarg66 requested review from Lichtso and dmakarov April 28, 2023 21:04
@codecov
Copy link

codecov bot commented Apr 28, 2023

Codecov Report

Merging #31395 (446c88a) into master (53e9e8b) will increase coverage by 0.0%.
The diff coverage is 97.3%.

@@           Coverage Diff           @@
##           master   #31395   +/-   ##
=======================================
  Coverage    81.4%    81.4%           
=======================================
  Files         731      731           
  Lines      208570   208572    +2     
=======================================
+ Hits       169856   169869   +13     
+ Misses      38714    38703   -11     

runtime/src/bank/tests.rs Outdated Show resolved Hide resolved
dmakarov
dmakarov previously approved these changes Apr 29, 2023
Copy link
Contributor

@dmakarov dmakarov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but you probably will need to rebase and update one line I mentioned in a comment

dmakarov
dmakarov previously approved these changes Apr 29, 2023
@pgarg66 pgarg66 merged commit ba6f7e8 into solana-labs:master May 2, 2023
@pgarg66 pgarg66 deleted the loader-changes branch May 2, 2023 21:39
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.

3 participants