Files
ruby/gc/default
Yusuke EndohandClaude Opus 5.5 6b60cb45f9 Unpoison zombies before clearing FL_FINALIZE at shutdown
A Ractor's zombies with finalizers are poisoned and moved to the main
objspace when the Ractor terminates.  If the process exits before they
are finalized, rb_gc_impl_shutdown_call_finalizer_i touches them and
ASAN reports use-after-poison.

```
8.times.map do
  Ractor.new do
    10.times do
      4.times { ObjectSpace.define_finalizer(Object.new, proc { sleep 0.0005 }) }
      GC.start
      sleep 0.0001
    end
  end
end.each(&:join)
#=> ERROR: AddressSanitizer: use-after-poison (sometimes)
```

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 15:59:41 +09:00
..