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:
parent
80fb4758a9
commit
d2ffd269a7
Notes:
git
2021-01-28 09:18:25 +09:00
1 changed files with 3 additions and 2 deletions
5
gc.c
5
gc.c
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue