Koichi Sasada 2026-07-01 18:50:54 +0000 (Wed, 01 Jul 2026)
New Revision: 7896d376fb
https://github.com/ruby/ruby/commit/7896d376fb
Log:
Prohibit at_exit and END{} in non-main Ractors
Registering an exit handler with Kernel#at_exit or END{} in a non-main
Ractor behaved confusingly: the block ran in the main Ractor at process
exit even though it was registered from another Ractor. Raise
Ractor::IsolationError instead.
[Feature #22139]
Co-Authored-By: Claude Opus 4.8 (1M context) <
nor...@anthropic.com>
Modified files:
NEWS.md
depend
eval_jump.c
test/ruby/test_ractor.rb
vm.c