summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2020-11-25 09:24:50 -0800
committerAaron Patterson <tenderlove@ruby-lang.org>2020-11-25 11:29:14 -0800
commitc32218de1ba094223420a4ea017707f48d0009c5 (patch)
treeacee8f29e3d3fdd53f1c0d386eed8203cc532ff9 /class.c
parent7aaf6676c416e773b0b3053de2e250a73c2b2e77 (diff)
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 'class.c')
0 files changed, 0 insertions, 0 deletions