summaryrefslogtreecommitdiff
path: root/alloc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-05-06 20:30:18 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-05-06 21:14:04 +0300
commitf8e6e7d8fb2fdadb58fc33b6035053abb0e8957c (patch)
treeb48676d58794e331e80a35bc4421043195a394ab /alloc.c
parent8fc2bdff2f5a223c35e1c53704188264d8f58e14 (diff)
downloadbdwgc-f8e6e7d8fb2fdadb58fc33b6035053abb0e8957c.tar.gz
Add assertion to GC_maybe_gc that GC is not in progress
(fix of commit 750d393b9) * alloc.c (GC_maybe_gc): If not GC_incremental then assert that no collection is in progress (before GC_stopped_mark() call).
Diffstat (limited to 'alloc.c')
-rw-r--r--alloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/alloc.c b/alloc.c
index 23c7c987..49060613 100644
--- a/alloc.c
+++ b/alloc.c
@@ -483,6 +483,7 @@ STATIC void GC_maybe_gc(void)
return;
}
+ GC_ASSERT(!GC_collection_in_progress());
# ifdef PARALLEL_MARK
if (GC_parallel)
GC_wait_for_reclaim();