-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Replace executor cache usage with LoadedPrograms cache #31462
Conversation
1c14a1d
to
a637d9f
Compare
Codecov Report
@@ Coverage Diff @@
## master #31462 +/- ##
=========================================
- Coverage 81.3% 81.3% -0.1%
=========================================
Files 734 734
Lines 205241 205290 +49
=========================================
+ Hits 166922 166934 +12
- Misses 38319 38356 +37 |
610e995
to
5c02c6d
Compare
5c02c6d
to
07b470b
Compare
ddfe184
to
33bbaf5
Compare
@@ -58,7 +58,8 @@ impl MessageProcessor { | |||
transaction_context: &mut TransactionContext, | |||
rent: Rent, | |||
log_collector: Option<Rc<RefCell<LogCollector>>>, | |||
tx_executor_cache: Rc<RefCell<TransactionExecutorCache>>, | |||
programs_loaded_for_tx_batch: Rc<RefCell<LoadedProgramsForTxBatch>>, |
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.
These three might not even require Rc<RefCell<>>
, but that can be refactored later.
33bbaf5
to
fa55d49
Compare
fa55d49
to
3c7d2ed
Compare
Hey @pgarg66! The bpf loader tests (and probably the implementation) in web3.js broke with this change. Want to help fix them? I'm here if you need help. solana-labs/solana-web3.js#1308 |
Problem
Need updates to the code to replace executor cache with LoadedPrograms cache.
Summary of Changes
Updated bank, loader and associated files to replace executor cache with loaded programs cache.
Fixes #