diff options
author | Felix Fietkau <nbd@nbd.name> | 2023-05-26 15:04:39 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2023-05-27 08:00:26 +0200 |
commit | 2b4346bfdc6769f8d6d9c680c7fac94f12cfbfae (patch) | |
tree | cb4e3962dc3e2c8c4ac379e59ffaa8261a93dc09 /vm.c | |
parent | 29edb011caf15d39511a5c13ac7a79ed6535d1e0 (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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -2502,8 +2502,6 @@ uc_vm_gc_step(uc_vm_t *vm) else { ucv_gc(vm); } - - vm->alloc_refs = 0; } } |