Project

General

Profile

Actions

Bug #19365

open

Ractors can access non-shareable values through enumerators

Added by luke-gru (Luke Gruber) 11 months ago. Updated 11 months ago.

Status:
Assigned
Priority:
Normal
Target version:
-
[ruby-core:111965]

Description

I don't think enumerators should be able to be passed to Ractor.new

obj = Object.new # unshareable value
p obj
Ractor.new([obj].each) {|f| p f.first }.take

Updated by hsbt (Hiroshi SHIBATA) 11 months ago

  • Status changed from Open to Assigned
  • Assignee set to ko1 (Koichi Sasada)

Updated by luke-gru (Luke Gruber) 11 months ago

Or rather, maybe they should be allowed to be passed but the deep clone logic should change? Not sure.

Actions

Also available in: Atom PDF

Like0
Like0Like0