Bump rbpf to v0.2.19 (#21880) (#21891)

* Bump rbpf to v0.2.19

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
(cherry picked from commit 509bcd2e74)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2021-12-14 20:30:31 +00:00
committed by GitHub
parent 135dfdbf1e
commit 2cd2f3ba7b
11 changed files with 25 additions and 16 deletions

View File

@ -3528,9 +3528,9 @@ dependencies = [
[[package]]
name = "solana_rbpf"
version = "0.2.18"
version = "0.2.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c7a237a92714db63de655e20af29a3b59c007881f2dfbdc2d3838ca3675f45f"
checksum = "4b4ea641d81290842c822f1348ce9f35ff3e11d09553e709c894af9765b7934c"
dependencies = [
"byteorder 1.4.3",
"combine",

View File

@ -33,7 +33,7 @@ solana-bpf-rust-realloc-invoke = { path = "rust/realloc_invoke", version = "=1.9
solana-cli-output = { path = "../../cli-output", version = "=1.9.1" }
solana-logger = { path = "../../logger", version = "=1.9.1" }
solana-measure = { path = "../../measure", version = "=1.9.1" }
solana_rbpf = "=0.2.18"
solana_rbpf = "=0.2.19"
solana-runtime = { path = "../../runtime", version = "=1.9.1" }
solana-program-runtime = { path = "../../program-runtime", version = "=1.9.1" }
solana-sdk = { path = "../../sdk", version = "=1.9.1" }

View File

@ -110,7 +110,7 @@ fn bench_program_alu(bencher: &mut Bencher) {
register_syscalls(invoke_context).unwrap(),
)
.unwrap();
executable.jit_compile().unwrap();
Executable::<BpfError, ThisInstructionMeter>::jit_compile(&mut executable).unwrap();
let compute_meter = invoke_context.get_compute_meter();
let mut instruction_meter = ThisInstructionMeter { compute_meter };
let mut vm = create_vm(&executable, &mut inner_iter, invoke_context, &[]).unwrap();

View File

@ -222,7 +222,7 @@ fn run_program(name: &str) -> u64 {
register_syscalls(invoke_context).unwrap(),
)
.unwrap();
executable.jit_compile().unwrap();
Executable::<BpfError, ThisInstructionMeter>::jit_compile(&mut executable).unwrap();
let mut instruction_count = 0;
let mut tracer = None;