chore: update flake.lock

This commit is contained in:
2026-04-24 22:05:47 +08:00
parent 21036aba46
commit 468269c20d
4 changed files with 23 additions and 23 deletions
+3 -3
View File
@@ -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 {