diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-02-02 15:32:38 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-02-03 09:22:24 -0500 |
commit | 424374d3302d8d25165007e7afedf14b1a76d23e (patch) | |
tree | 609bc7c495191093f5dfd1cc5e13b5267b1683e6 /test/ruby | |
parent | 8f3a36fb6e40f9259cc2fcd182cddb7472f3be14 (diff) | |
download | ruby-424374d3302d8d25165007e7afedf14b1a76d23e.tar.gz |
Fix case when gc_marks_continue does not yield slots
gc_marks_continue will start sweeping when it finishes marking. However,
if the heap we are trying to allocate into is full, then the sweeping
may not yield any free slots. If we don't call gc_sweep_continue
immediate after this, then another GC will be started halfway during
lazy sweeping. gc_sweep_continue will either grow the heap or finish
sweeping.
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions