diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2020-11-25 09:24:50 -0800 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2020-11-25 11:29:14 -0800 |
commit | c32218de1ba094223420a4ea017707f48d0009c5 (patch) | |
tree | acee8f29e3d3fdd53f1c0d386eed8203cc532ff9 /lex.c.blt | |
parent | 7aaf6676c416e773b0b3053de2e250a73c2b2e77 (diff) | |
download | ruby-c32218de1ba094223420a4ea017707f48d0009c5.tar.gz |
Disable auto compaction on platforms that can't support it
Both explicit compaction routines (gc_compact and the verify references form)
need to clear the heap before executing compaction. Otherwise some
objects may not be alive, and we'll need the read barrier. The heap
must only contain *live* objects if we want to disable the read barrier
during explicit compaction.
The previous commit was missing the "clear the heap" phase from the
"verify references" explicit compaction function.
Fixes [Bug #17306]
Diffstat (limited to 'lex.c.blt')
0 files changed, 0 insertions, 0 deletions