Issue #19387 has been updated by luke-gru (Luke Gruber).
Subject changed from Issue with ObjectSpace.each_objects not returning IO objects after
starting a ractor to Issue with ObjectSpace.each_objects not returning objects after
starting a ractor
The problem is actually for any objects, not just IO.
----------------------------------------
Bug #19387: Issue with ObjectSpace.each_objects not returning objects after starting a
ractor
https://bugs.ruby-lang.org/issues/19387#change-101525
* Author: luke-gru (Luke Gruber)
* Status: Open
* Priority: Normal
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
```ruby
r = Ractor.new do
receive # block, the problem is not the termination of the ractor but the starting
end
ObjectSpace.each_object(IO) { |io|
p io # we get no objects
}
```
--
https://bugs.ruby-lang.org/