From 2b4346bfdc6769f8d6d9c680c7fac94f12cfbfae Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 26 May 2023 15:04:39 +0200 Subject: 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 --- vm.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'vm.c') 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; } } -- cgit v1.2.3