This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor - create_executor() to be usable outside of bpf_loader (#28369)
* Moves disable_deploy_of_alloc_free_syscall parameter inside create_executor(). * Lets register_syscalls() take &FeatureSet only instead of the entire InvokeContext. * Uses ic_logger_msg!() instead of ic_msg!() inside create_executor(). Inlines map_ebpf_error(). * Adds register_syscalls_us to executor_metrics::CreateMetrics. * Moves timings accumulation into executor_metrics::CreateMetrics::submit_datapoint(). * Moves &invoke_context.feature_set into a variable. * Lets create_executor() return executor_metrics::CreateMetrics via a mutable parameter. * Dissolves invoke_context parameter in create_executor(). * Pulls assignment of create_executor_metrics.program_id outside of create_executor(). * Makes create_executor() take a byte slice instead of a BorrowedAccount. * Adds create_executor_from_account().
- Loading branch information