summaryrefslogtreecommitdiffhomepage
path: root/vm.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2023-05-26 15:04:39 +0200
committerFelix Fietkau <nbd@nbd.name>2023-05-27 08:00:26 +0200
commit2b4346bfdc6769f8d6d9c680c7fac94f12cfbfae (patch)
treecb4e3962dc3e2c8c4ac379e59ffaa8261a93dc09 /vm.c
parent29edb011caf15d39511a5c13ac7a79ed6535d1e0 (diff)
vm: clear vm->alloc_refs in uc_gc_common
This avoids unnecessary gc calls when configuring a gc interval while also explicitly calling ucv_gc from C code embedding a vm at convenient points in time. Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index 5bc071b..8512f8c 100644
--- a/vm.c
+++ b/vm.c
@@ -2502,8 +2502,6 @@ uc_vm_gc_step(uc_vm_t *vm)
else {
ucv_gc(vm);
}
-
- vm->alloc_refs = 0;
}
}