Skip to content

Commit 614f684

Browse files
committed
More debug assertions
1 parent 93deb2a commit 614f684

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

gc/default/default.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5259,6 +5259,8 @@ gc_sweep_start_heap(rb_objspace_t *objspace, rb_heap_t *heap)
52595259
#if RUBY_DEBUG
52605260
heap->unlinked_pages = 0;
52615261
#endif
5262+
GC_ASSERT(heap->freed_slots == 0);
5263+
GC_ASSERT(heap->empty_slots == 0);
52625264

52635265
#if USE_PARALLEL_SWEEP
52645266
heap->background_sweep_steps = heap->foreground_sweep_steps;

0 commit comments

Comments
 (0)