Project

General

Profile

Actions

Feature #17270

closed

ObjectSpace.each_object should be restricted on multi-Ractors

Feature #17270: ObjectSpace.each_object should be restricted on multi-Ractors

Added by ko1 (Koichi Sasada) about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:100441]

Description

Unshareable objects should not be touched from multiple ractors
so ObjectSpace.each_object should be restricted. On multi-ractor
mode, ObjectSpace.each_object only iterates shareable objects
even if running on the main ractor.

https://github.com/ruby/ruby/pull/3672


Related issues 2 (1 open1 closed)

Related to Ruby - Bug #21149: Strange behavior of ObjectSpace.each_object after Ractor.newRejectedActions
Related to Ruby - Bug #19387: ObjectSpace.each_objects only returns shareable objects after starting a RactorAssignedractorActions

Updated by ko1 (Koichi Sasada) about 5 years ago Actions #1

  • Subject changed from ObjectSpace.each_object should be restricted on multi-Racotrs to ObjectSpace.each_object should be restricted on multi-Ractors

Updated by ko1 (Koichi Sasada) about 5 years ago Actions #2

  • Status changed from Open to Closed

Applied in changeset git|ade411465dc054af5ff025531649b69134d74b56.


ObjectSpace.each_object with Ractors

Unshareable objects should not be touched from multiple ractors
so ObjectSpace.each_object should be restricted. On multi-ractor
mode, ObjectSpace.each_object only iterates shareable objects.
[Feature #17270]

Updated by ko1 (Koichi Sasada) almost 5 years ago Actions #3 [ruby-core:100584]

This proposal was confirmed.
We need to introduce same filter for some other methods...

Updated by wanabe (_ wanabe) 8 months ago Actions #4

  • Related to Bug #21149: Strange behavior of ObjectSpace.each_object after Ractor.new added

Updated by Eregon (Benoit Daloze) 6 months ago Actions #5

  • Related to Bug #19387: ObjectSpace.each_objects only returns shareable objects after starting a Ractor added
Actions

Also available in: PDF Atom