From bba6afeff83b613fa50cbaf52aea62d9776724ab Mon Sep 17 00:00:00 2001 From: Victor Olin Date: Mon, 20 Mar 2023 17:24:27 +0100 Subject: [PATCH] Bugfix caused new bug, bugfix 2 --- src/GC/lib/heap.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GC/lib/heap.cpp b/src/GC/lib/heap.cpp index 3389f4b..b37ebe8 100644 --- a/src/GC/lib/heap.cpp +++ b/src/GC/lib/heap.cpp @@ -413,6 +413,10 @@ namespace GC Profiler::record(ChunkFreed, chunk); delete chunk; } + else + { + chunk->marked = false; + } } }