diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-05-06 20:30:18 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-05-06 21:14:04 +0300 |
commit | f8e6e7d8fb2fdadb58fc33b6035053abb0e8957c (patch) | |
tree | b48676d58794e331e80a35bc4421043195a394ab /alloc.c | |
parent | 8fc2bdff2f5a223c35e1c53704188264d8f58e14 (diff) | |
download | bdwgc-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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(); |