Project

General

Profile

Actions

Bug #19387

open

ObjectSpace.each_objects only returns shareable objects after starting a Ractor

Added by luke-gru (Luke Gruber) over 2 years ago. Updated about 1 month ago.

Status:
Assigned
Assignee:
Target version:
-
[ruby-core:112091]

Description

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
}

Related issues 3 (0 open3 closed)

Related to Ruby - Feature #17270: ObjectSpace.each_object should be restricted on multi-RactorsClosedActions
Has duplicate Ruby - Bug #21149: Strange behavior of ObjectSpace.each_object after Ractor.newRejectedActions
Has duplicate Ruby - Bug #21401: ObjectSpace can't count Fibers after using a RactorRejectedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0