chore: update flake.lock
This commit is contained in:
+3
-3
@@ -444,19 +444,19 @@ pub(crate) enum NixNum {
|
||||
|
||||
impl Vm<'_> {
|
||||
pub fn run<C: VmContext>(
|
||||
mut ctx: C,
|
||||
ctx: &mut C,
|
||||
ip: InstructionPtr,
|
||||
force_mode: ForceMode,
|
||||
) -> Result<fix_common::Value> {
|
||||
let mut arena: Arena<Rootable![Vm<'_>]> =
|
||||
Arena::new(|mc| Vm::new(force_mode, mc, &mut ctx));
|
||||
Arena::new(|mc| Vm::new(force_mode, mc, ctx));
|
||||
|
||||
const COLLECTOR_GRANULARITY: f64 = 1024.0;
|
||||
|
||||
let mut pc = ip.0;
|
||||
let bytecode: Vec<u8> = ctx.bytecode().to_vec();
|
||||
loop {
|
||||
match arena.mutate_root(|mc, root| root.dispatch_batch(&bytecode, &mut ctx, pc, mc)) {
|
||||
match arena.mutate_root(|mc, root| root.dispatch_batch(&bytecode, ctx, pc, mc)) {
|
||||
Action::Continue { pc: new_pc } => {
|
||||
pc = new_pc;
|
||||
if arena.metrics().allocation_debt() > COLLECTOR_GRANULARITY {
|
||||
|
||||
Reference in New Issue
Block a user