Project

General

Profile

Actions

Feature #17270

closed

ObjectSpace.each_object should be restricted on multi-Ractors

Added by ko1 (Koichi Sasada) 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
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

Actions #1

Updated by ko1 (Koichi Sasada) 7 months ago

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

Updated by ko1 (Koichi Sasada) 7 months ago

  • 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) 7 months ago

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

Actions

Also available in: Atom PDF