1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[Fixes #17538] Fix assertion failure when rincgc is turned off

Co-Authored-By: Matt Valentine-House <31869+eightbitraptor@users.noreply.github.com>
This commit is contained in:
Peter Zhu 2021-01-13 13:45:03 -05:00 committed by Aaron Patterson
parent 80fb4758a9
commit d2ffd269a7
Notes: git 2021-01-28 09:18:25 +09:00

5
gc.c
View file

@ -5174,8 +5174,9 @@ gc_sweep_step(rb_objspace_t *objspace, rb_heap_t *heap)
}
}
#else
heap_add_freepage(heap, sweep_page);
break;
if (heap_add_freepage(heap, sweep_page)) {
break;
}
#endif
}
else {