From 9a7cc9fd4cabf1841fde52cf59bc1988dcc098b8 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Sun, 27 Oct 2024 10:39:14 -0400 Subject: [PATCH] Fix assert in the debug runtime from #3177 (#3186) fix assert in the debug runtime --- runtime/shared_heap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/shared_heap.c b/runtime/shared_heap.c index f443194f685..4090b8e8662 100644 --- a/runtime/shared_heap.c +++ b/runtime/shared_heap.c @@ -1323,6 +1323,7 @@ void caml_compact_heap(caml_domain_state* domain_state, heap->stats.pool_words -= POOL_WSIZE; heap->stats.pool_frag_words -= POOL_HEADER_WSIZE + wastage_sizeclass[sz]; last = cur_pool; + cur_pool->owner = NULL; cur_pool = cur_pool->next; freed_pools++; }