wingo pushed a commit to branch wip-whippet
in repository guile.

commit 15d5c789f7374e4c671963b93e0731e83dc553cf
Author: Andy Wingo <wi...@igalia.com>
AuthorDate: Tue Jul 15 11:15:00 2025 +0200

    Fix error when inactive mutator exits
---
 src/mmc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mmc.c b/src/mmc.c
index fe99ee331..0ad5e12b8 100644
--- a/src/mmc.c
+++ b/src/mmc.c
@@ -267,6 +267,8 @@ remove_mutator(struct gc_heap *heap, struct gc_mutator 
*mut) {
   MUTATOR_EVENT(mut, mutator_removed);
   mut->heap = NULL;
   heap_lock(heap);
+  if (!mut->active)
+    heap->inactive_mutator_count--;
   heap->mutator_count--;
   mut->active = 0;
   if (mut->next)

Reply via email to