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

Refactor - Move recompilation out of program loading #35297

Conversation

Lichtso
Copy link
Contributor

@Lichtso Lichtso commented Feb 23, 2024

Problem

The adjustments for programs being loaded in the recompilation phase can be done at the caller (Bank::_new_from_parent()) and don't need to pollute the callee (TransactionBatchProcessor::load_program()).

This PR was split from #35283 which should land first.

Summary of Changes

Moves the setting of effective_epoch, tx_usage_counter and ix_usage_counter from the callee to the caller.

@Lichtso Lichtso added the v1.18 PRs that should be backported to v1.18 label Feb 23, 2024
Copy link
Contributor

mergify bot commented Feb 23, 2024

Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis.

@Lichtso Lichtso requested a review from pgarg66 February 23, 2024 14:14
@pgarg66
Copy link
Contributor

pgarg66 commented Feb 23, 2024

Do we need to backport this to v1.18?

@Lichtso Lichtso force-pushed the refactor/recompilation_out_of_program_loading branch from f64b72a to 34a2820 Compare February 23, 2024 15:24
@Lichtso Lichtso removed the v1.18 PRs that should be backported to v1.18 label Feb 23, 2024
Copy link
Contributor

@pgarg66 pgarg66 left a comment

Choose a reason for hiding this comment

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

Thanks for the refactor. LGTM.

@Lichtso Lichtso merged commit 74758d9 into solana-labs:master Feb 23, 2024
34 of 36 checks passed
@Lichtso Lichtso deleted the refactor/recompilation_out_of_program_loading branch February 23, 2024 16:25
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Feb 27, 2024
Moves recompilation specifics out of load_program().
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