summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/iterator_spec.rb
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-07-19 19:42:00 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-07-19 19:42:09 +1200
commite004afd46d3bd27bda4c4922eadcf11c7e4bfc55 (patch)
treec4a90f3ef2bbf559ff49ffcb59ac4badba90db52 /spec/ruby/core/kernel/iterator_spec.rb
parentfba3e76e3fded3534a34b21412c17af2b02a5f3d (diff)
Ensure that madvise does not clobber vacancy data.
After calling `fiber_pool_vacancy_reset`, `vacancy->stack` and `stack` are no longer in sync. Therefore, `fiber_pool_stack_free(&vacancy->stack)` can do the wrong thing and clobber the vacancy data. Additionally, when testing using VM_CHECK_MODE > 0, use MADV_DONTNEED if possible, to catch issues w.r.t. clobbered vacancy data earlier.
Diffstat (limited to 'spec/ruby/core/kernel/iterator_spec.rb')
0 files changed, 0 insertions, 0 deletions