Skip to content

Commit

Permalink
Enable JIT in Bank::new_with_config_for_tests() (solana-labs#30661)
Browse files Browse the repository at this point in the history
The most common validator configuration is JIT on, so test that. On
platforms that don't support JIT we'll still fallback on the
interpreter.
  • Loading branch information
alessandrod authored Mar 10, 2023
1 parent 0b9c040 commit 13107b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,10 @@ impl Bank {
) -> Self {
Self::new_with_paths_for_tests(
genesis_config,
Arc::<RuntimeConfig>::default(),
Arc::new(RuntimeConfig {
bpf_jit: true,
..RuntimeConfig::default()
}),
Vec::new(),
account_indexes,
shrink_ratio,
Expand Down

0 comments on commit 13107b4

Please sign in to comment.